|
|
@ -210,8 +210,7 @@ public class TaskServiceImpl implements TaskService { |
|
|
|
TaskDetailDTO taskMsg = new TaskDetailDTO(); |
|
|
|
TaskDetailDTO taskMsg = new TaskDetailDTO(); |
|
|
|
BeanUtil.copyProperties(taskDO, taskMsg); |
|
|
|
BeanUtil.copyProperties(taskDO, taskMsg); |
|
|
|
if (ObjectUtil.isNotEmpty(taskDO.getExecutorPerson())){ |
|
|
|
if (ObjectUtil.isNotEmpty(taskDO.getExecutorPerson())){ |
|
|
|
List<Long> userIdList = taskDO.getExecutorPerson().toJavaList(Long.class); |
|
|
|
List<CpUserDO> userList = cpUserMapper.selectList(Wrappers.<CpUserDO>lambdaQuery().in(CpUserDO::getId, taskDO.getExecutorPerson())); |
|
|
|
List<CpUserDO> userList = cpUserMapper.selectList(Wrappers.<CpUserDO>lambdaQuery().in(CpUserDO::getId, userIdList)); |
|
|
|
|
|
|
|
//执行人
|
|
|
|
//执行人
|
|
|
|
taskMsg.setApiExecutor(userList); |
|
|
|
taskMsg.setApiExecutor(userList); |
|
|
|
} |
|
|
|
} |
|
|
@ -246,8 +245,7 @@ public class TaskServiceImpl implements TaskService { |
|
|
|
taskMsg.setApiProjectName(projectDO.getName()); |
|
|
|
taskMsg.setApiProjectName(projectDO.getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
if (ObjectUtil.isNotEmpty(projectDO.getMembers())){ |
|
|
|
if (ObjectUtil.isNotEmpty(projectDO.getMembers())){ |
|
|
|
List<Long> projectMemberId = projectDO.getMembers().toJavaList(Long.class); |
|
|
|
List<CpUserDO> projectMember = cpUserMapper.selectList(CpUserDO::getId, projectDO.getMembers()); |
|
|
|
List<CpUserDO> projectMember = cpUserMapper.selectList(CpUserDO::getId,projectMemberId); |
|
|
|
|
|
|
|
taskMsg.setProjectMemberList(projectMember); |
|
|
|
taskMsg.setProjectMemberList(projectMember); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -281,7 +279,7 @@ public class TaskServiceImpl implements TaskService { |
|
|
|
areaIdList.addAll(taskDO.getAreas()); |
|
|
|
areaIdList.addAll(taskDO.getAreas()); |
|
|
|
} |
|
|
|
} |
|
|
|
if (ObjectUtil.isNotEmpty(taskDO.getExecutorPerson())){ |
|
|
|
if (ObjectUtil.isNotEmpty(taskDO.getExecutorPerson())){ |
|
|
|
executorIdList.addAll(taskDO.getExecutorPerson().toJavaList(Long.class)); |
|
|
|
executorIdList.addAll(taskDO.getExecutorPerson()); |
|
|
|
} |
|
|
|
} |
|
|
|
if (ObjectUtil.isNotEmpty(taskDO.getResources())){ |
|
|
|
if (ObjectUtil.isNotEmpty(taskDO.getResources())){ |
|
|
|
resourceMap.put(taskDO.getId(), taskDO.getResources().toJavaList(ResourceDTO.class)); |
|
|
|
resourceMap.put(taskDO.getId(), taskDO.getResources().toJavaList(ResourceDTO.class)); |
|
|
@ -395,7 +393,7 @@ public class TaskServiceImpl implements TaskService { |
|
|
|
List<String> executorNameList = new ArrayList<>(); |
|
|
|
List<String> executorNameList = new ArrayList<>(); |
|
|
|
preAssemblyDTO.getExecutorList().forEach(executor ->{ |
|
|
|
preAssemblyDTO.getExecutorList().forEach(executor ->{ |
|
|
|
if (ObjectUtil.isNotEmpty(taskDO.getExecutorPerson())){ |
|
|
|
if (ObjectUtil.isNotEmpty(taskDO.getExecutorPerson())){ |
|
|
|
taskDO.getExecutorPerson().toJavaList(Long.class).forEach(item ->{ |
|
|
|
taskDO.getExecutorPerson().forEach(item ->{ |
|
|
|
if (executor.getId().equals(item)){ |
|
|
|
if (executor.getId().equals(item)){ |
|
|
|
executorNameList.add( executor.getName()); |
|
|
|
executorNameList.add( executor.getName()); |
|
|
|
} |
|
|
|
} |
|
|
|