|  |  |  | 
|---|
|  |  |  | if(cu == null){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对不起,该企业用户不存在!"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //            if(Constants.equalsInteger(cu.getStatus(),Constants.ONE)){ | 
|---|
|  |  |  | //                throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对不起,该企业用户已禁用!"); | 
|---|
|  |  |  | //            } | 
|---|
|  |  |  | if(Constants.equalsInteger(cu.getStatus(),Constants.ONE)){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"对不起,该企业用户已禁用!"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | rootDepart = departmentExtService.getModelById(c.getCompanyId(),cu.getRootDepartId()); | 
|---|
|  |  |  | comDepart = departmentExtService.getModelById(c.getCompanyId(),cu.getComDepartId()); | 
|---|
|  |  |  | depart = departmentExtService.getModelById(c.getCompanyId(),cu.getDepartmentId()); | 
|---|