瀏覽代碼

新增统一信用代码添加

anderx 3 年之前
父節點
當前提交
991eaba54e
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/main/java/com/goafanti/customer/controller/AdminCustomerApiController.java

+ 6 - 1
src/main/java/com/goafanti/customer/controller/AdminCustomerApiController.java

@@ -1488,7 +1488,12 @@ public class AdminCustomerApiController extends BaseApiController{
 	public Result updateUserDate(String uid,Integer province,Integer city,Integer area,String businessScope,String intendedProject,String introduction
 	,Integer channelType,String orgCode){
 		Result res = new Result();
-
+		if (orgCode!=null){
+			if (customerService.checkOrgCode(orgCode)){
+				res.getError().add(buildError("","统一信用代码已存在"));
+				return res;
+			}
+		}
 		res.data(customerService.updateUserDate(uid, province, city, area, businessScope, intendedProject,introduction,channelType,orgCode));
 		return res;
 	}