Browse Source

修复bug

zyh
小久哥 3 years ago
parent
commit
d662c8dec1
  1. 5
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/service/project/ProjectServiceImpl.java

5
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/service/project/ProjectServiceImpl.java

@ -181,9 +181,12 @@ public class ProjectServiceImpl implements ProjectService {
//组装 项目成员信息
List<Long> memberIDList = new ArrayList<>();
projectListDTOList.forEach(item ->{
if (ObjectUtil.isNotEmpty(item.getMembers())){
memberIDList.addAll(item.getMembers().toJavaList(Long.class));
}
});
memberIDList.stream().distinct().collect(Collectors.toList());
if (ObjectUtil.isNotEmpty(memberIDList)){
List<CpUserDO> cpUserList = cpUserMapper.selectList(Wrappers.<CpUserDO>lambdaQuery().in(CpUserDO::getId, memberIDList));
projectListDTOList.forEach(item ->{
List<CpUserDO> memberList = new ArrayList<>();
@ -195,6 +198,8 @@ public class ProjectServiceImpl implements ProjectService {
});
item.setMemberList(memberList);
});
}
//任务完成的

Loading…
Cancel
Save