|
|
@@ -550,7 +550,7 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
}
|
|
|
if (user.getDeptName()!=null){
|
|
|
SysDept sysDept = deptService.selectByDepName(user.getDeptName(), company);
|
|
|
- if (sysDept !=null){
|
|
|
+ if (sysDept ==null){
|
|
|
throw new ServiceException("部门数据异常,找不到部门");
|
|
|
}
|
|
|
}
|
|
|
@@ -582,7 +582,7 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
}
|
|
|
if (user.getDeptName()!=null&&!user.getDeptName().equals(u.getDeptName())){
|
|
|
SysDept sysDept = deptService.selectByDepName(user.getDeptName(), company);
|
|
|
- if (sysDept !=null){
|
|
|
+ if (sysDept ==null){
|
|
|
throw new ServiceException("部门数据异常,找不到部门");
|
|
|
}
|
|
|
}
|