|
|
@@ -329,9 +329,11 @@ public class AdminCustomerApiController extends BaseApiController{
|
|
|
res.getError().add(buildError("","创建客户参数不全"));
|
|
|
return res;
|
|
|
}
|
|
|
- if (customerService.checkMax(null,TokenManager.getAdminId())) {
|
|
|
- res.getError().add(buildError("","私有客户已达最大限制"));
|
|
|
- return res;
|
|
|
+ if (!customerService.checkAid(TokenManager.getAdminId(),Integer.valueOf(AFTConstants.CUSTOMER_SERVICE_SALESMAN))){
|
|
|
+ if (customerService.checkMax(null,TokenManager.getAdminId())) {
|
|
|
+ res.getError().add(buildError("","私有客户已达最大限制"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
}
|
|
|
if (customerService.checkOrgCode(in.getOrgCode())){
|
|
|
res.getError().add(buildError("","统一信用代码已存在"));
|