|
@@ -744,7 +744,7 @@ public class ProjectTaskServiceImpl implements ProjectTaskService {
|
|
|
sysUser.setKySuperId(e.getKySuperId());
|
|
sysUser.setKySuperId(e.getKySuperId());
|
|
|
if (e.getKyDeptId()!=null){
|
|
if (e.getKyDeptId()!=null){
|
|
|
SysDept sysDept = sysDeptMapper.selectByKyId(e.getKyDeptId());
|
|
SysDept sysDept = sysDeptMapper.selectByKyId(e.getKyDeptId());
|
|
|
- if (sysDept!=null){
|
|
|
|
|
|
|
+ if (sysDept==null){
|
|
|
throw new RuntimeException(String.format("部门[",e.getKyDeptId(),"]不存在"));
|
|
throw new RuntimeException(String.format("部门[",e.getKyDeptId(),"]不存在"));
|
|
|
}
|
|
}
|
|
|
sysUser.setDeptId(sysDept.getDeptId());
|
|
sysUser.setDeptId(sysDept.getDeptId());
|