|
@@ -334,10 +334,10 @@ public class AdminCustomerApiController extends BaseApiController{
|
|
|
return res;
|
|
return res;
|
|
|
}
|
|
}
|
|
|
//判断电话号码
|
|
//判断电话号码
|
|
|
- if (customerService.checkContactMobile(in.getContactMobile())>1){
|
|
|
|
|
- res.getError().add(buildError("电话已经在系统填入多次"));
|
|
|
|
|
- return res;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if (customerService.checkContactMobile(in.getContactMobile())>1){
|
|
|
|
|
+// res.getError().add(buildError("电话已经在系统填入多次"));
|
|
|
|
|
+// return res;
|
|
|
|
|
+// }
|
|
|
if (!RegexUtils.isMobile(in.getContactMobile())) {
|
|
if (!RegexUtils.isMobile(in.getContactMobile())) {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "联系人电话格式错误", "联系人电话"));
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "联系人电话格式错误", "联系人电话"));
|
|
|
return res;
|
|
return res;
|
|
@@ -376,10 +376,10 @@ public class AdminCustomerApiController extends BaseApiController{
|
|
|
res.getError().add(buildError("手机号码格式错误"));
|
|
res.getError().add(buildError("手机号码格式错误"));
|
|
|
return res;
|
|
return res;
|
|
|
}
|
|
}
|
|
|
- if (customerService.checkContactMobile(in.getContactMobile())>1){
|
|
|
|
|
- res.getError().add(buildError("电话已经在系统填入多次"));
|
|
|
|
|
- return res;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if (customerService.checkContactMobile(in.getContactMobile())>1){
|
|
|
|
|
+// res.getError().add(buildError("电话已经在系统填入多次"));
|
|
|
|
|
+// return res;
|
|
|
|
|
+// }
|
|
|
in.setType(1);
|
|
in.setType(1);
|
|
|
//新增为私有客户
|
|
//新增为私有客户
|
|
|
in.setShareType(0);
|
|
in.setShareType(0);
|
|
@@ -1147,10 +1147,10 @@ public class AdminCustomerApiController extends BaseApiController{
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "联系人电话格式错误", "联系人电话"));
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "联系人电话格式错误", "联系人电话"));
|
|
|
return res;
|
|
return res;
|
|
|
}
|
|
}
|
|
|
- if (customerService.checkContactMobile(ocb.getMobile())>1){
|
|
|
|
|
- res.getError().add(buildError("电话已经在系统填入多次"));
|
|
|
|
|
- return res;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if (customerService.checkContactMobile(ocb.getMobile())>1){
|
|
|
|
|
+// res.getError().add(buildError("电话已经在系统填入多次"));
|
|
|
|
|
+// return res;
|
|
|
|
|
+// }
|
|
|
customerService.addOneContact(ocb);
|
|
customerService.addOneContact(ocb);
|
|
|
return res;
|
|
return res;
|
|
|
}
|
|
}
|
|
@@ -1721,10 +1721,10 @@ public class AdminCustomerApiController extends BaseApiController{
|
|
|
res.getError().add(buildError("","手机号码格式错误"));
|
|
res.getError().add(buildError("","手机号码格式错误"));
|
|
|
return res;
|
|
return res;
|
|
|
}
|
|
}
|
|
|
- if (customerService.checkContactMobile(in.getContactMobile())>1){
|
|
|
|
|
- res.getError().add(buildError("电话已经在系统填入多次"));
|
|
|
|
|
- return res;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if (customerService.checkContactMobile(in.getContactMobile())>1){
|
|
|
|
|
+// res.getError().add(buildError("电话已经在系统填入多次"));
|
|
|
|
|
+// return res;
|
|
|
|
|
+// }
|
|
|
}
|
|
}
|
|
|
Result result = receiveCustomer(in.getId(), null);
|
|
Result result = receiveCustomer(in.getId(), null);
|
|
|
res.getError().addAll(result.getError());
|
|
res.getError().addAll(result.getError());
|