ソースを参照

新增统一信用代码添加

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;
 	}