Browse Source

开单修改

anderx 4 years ago
parent
commit
7382526c68

+ 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())) {