|
@@ -62,7 +62,7 @@ public class LoginController extends BaseController{
|
|
|
throw new BusinessException(ResultCode.USER_NOT_LOGIN_PERM);
|
|
|
}
|
|
|
//超管除外
|
|
|
- if(!tmUser.getDeptId().equals("0")){
|
|
|
+ if(!tmUser.getDeptId().equals("0") && !tmUser.getDeptId().equals(request.getDeptId())){
|
|
|
List<TmDepartment> deptList = tmDepartmentService.getSonByDeptId(request.getDeptId());
|
|
|
if(deptList == null || deptList.size() <=0){
|
|
|
throw new BusinessException(ResultCode.DEPT_NOT_EXITS);
|