mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
1、发票抬头管理纳税号修正为统一信用代码,只有企业发票才检查唯一和非空;2、产品购买纯第三方支付补充生成收支记录;
This commit is contained in:
+7
@@ -4,6 +4,7 @@ package com.cf.imes.framework.common.util.Assert;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.cf.imes.framework.common.exception.ErrorCode;
|
||||
import com.cf.imes.framework.common.exception.util.ServiceExceptionUtil;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
|
||||
import java.util.List;
|
||||
@@ -72,6 +73,12 @@ public class AssertUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public static void notEmpty(String str, ErrorCode errorCode) {
|
||||
if (StringUtils.isEmpty(str)) {
|
||||
throw exception(errorCode);
|
||||
}
|
||||
}
|
||||
|
||||
public static void notEquals(Object obj1, Object obj2, ErrorCode errorCode) {
|
||||
if (ObjectUtil.notEqual(obj1, obj2)) {
|
||||
throw exception(errorCode);
|
||||
|
||||
Reference in New Issue
Block a user