소스 검색

开单修改

anderx 4 년 전
부모
커밋
7382526c68
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/main/java/com/goafanti/customer/controller/AdminCustomerApiController.java

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

@@ -274,8 +274,10 @@ public class AdminCustomerApiController extends BaseApiController{
 	public Result addCustomer(InputAddCustomer in) throws Exception{
 		Result res = new Result();
 		if(StringUtils.isBlank(in.getName()) || StringUtils.isBlank(in.getContacts())
-				|| StringUtils.isBlank(in.getContactMobile()) || StringUtils.isBlank(in.getSocietyTag())||null==in.getProvince()||null==in.getCity()||null==in.getArea()){
-			res.getError().add(buildError("","客户名称、联系人、联系电话、社会性质、地址不能为空"));
+				|| StringUtils.isBlank(in.getContactMobile()) ||null==in.getProvince()||null==in.getCity()||null==in.getArea()
+				|| StringUtils.isBlank(in.getBusinessScope())
+				|| StringUtils.isBlank(in.getIntendedProject())){
+			res.getError().add(buildError("","创建客户参数不全"));
 			return res;
 		}
 		if (customerService.checkMax(TokenManager.getAdminId())) {