Parcourir la source

新增统一信用代码添加

anderx il y a 3 ans
Parent
commit
991eaba54e

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