Browse Source

新增跟进客户修改

anderx 1 year ago
parent
commit
dc860c2d4d

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

@@ -524,13 +524,13 @@ public class AdminCustomerApiController extends BaseApiController{
 		if (ja != null && !ja.isEmpty()) {
 			BusinessListBo userBusiness = null;
 			for (int idx = 0; idx < ja.size(); idx++) {
-				userBusiness = ja.getJSONObject(idx).toJavaObject(BusinessListBo.class);
-				for(BusinessListBo ub:list){
-					if(Objects.equals(ub.getBusinessProjectId(), userBusiness.getBusinessProjectId())){
-						res.getError().add(new com.goafanti.common.bo.Error("业务类型重复,请检查后重新提交!"));
-						return res;
-					}
-				}
+//				userBusiness = ja.getJSONObject(idx).toJavaObject(BusinessListBo.class);
+//				for(BusinessListBo ub:list){
+//					if(Objects.equals(ub.getBusinessProjectId(), userBusiness.getBusinessProjectId())){
+//						res.getError().add(new com.goafanti.common.bo.Error("业务类型重复,请检查后重新提交!"));
+//						return res;
+//					}
+//				}
 				list.add(userBusiness);
 			}
 		}
@@ -573,12 +573,12 @@ public class AdminCustomerApiController extends BaseApiController{
 			BusinessListBo userBusiness = null;
 			for (int idx = 0; idx < ja.size(); idx++) {
 				userBusiness = ja.getJSONObject(idx).toJavaObject(BusinessListBo.class);
-				for(BusinessListBo ub:list){
-					if(ub.getBusinessProjectId() == userBusiness.getBusinessProjectId()){
-						res.getError().add(new com.goafanti.common.bo.Error("业务类型重复,请检查后重新提交!"));
-						return res;
-					}
-				}
+//				for(BusinessListBo ub:list){
+//					if(ub.getBusinessProjectId() == userBusiness.getBusinessProjectId()){
+//						res.getError().add(new com.goafanti.common.bo.Error("业务类型重复,请检查后重新提交!"));
+//						return res;
+//					}
+//				}
 				list.add(userBusiness);
 			}
 		}