|
|
@@ -609,6 +609,9 @@ public class ProjectTaskServiceImpl implements ProjectTaskService {
|
|
|
@Override
|
|
|
public Object pushRdData(pushRdDataBo in) {
|
|
|
SysDept sysDept = sysDeptMapper.selectByusci(in.getUsci());
|
|
|
+ if (sysDept==null){
|
|
|
+ throw new ServiceException("公司不存在");
|
|
|
+ }
|
|
|
Map<String,ProjectTask> projectMap=new HashMap();
|
|
|
Map<String,SysUser> userMap=new HashMap();
|
|
|
if (!in.getRdList().isEmpty()){
|
|
|
@@ -741,6 +744,9 @@ public class ProjectTaskServiceImpl implements ProjectTaskService {
|
|
|
sysUser.setKySuperId(e.getKySuperId());
|
|
|
if (e.getKyDeptId()!=null){
|
|
|
SysDept sysDept = sysDeptMapper.selectByKyId(e.getKyDeptId());
|
|
|
+ if (sysDept!=null){
|
|
|
+ throw new RuntimeException(String.format("部门[",e.getKyDeptId(),"]不存在"));
|
|
|
+ }
|
|
|
sysUser.setDeptId(sysDept.getDeptId());
|
|
|
}
|
|
|
//如果系统已经存在则修改
|