|
|
@@ -234,6 +234,9 @@ public class CompanyUserServiceImpl implements ICompanyUserService
|
|
|
|
|
|
Integer count=companyUserService.selectCompanyUserCountByCompanyId(copy.getCompanyId());
|
|
|
Company company=companyService.selectCompanyById(copy.getCompanyId());
|
|
|
+ if (company== null) {
|
|
|
+ throw new CustomException("未查询到相应的销售公司!");
|
|
|
+ }
|
|
|
|
|
|
if(count>company.getLimitUserCount()){
|
|
|
throw new CustomException("销售公司的销售数量已达到上限!");
|