Browse Source

fit:1、督察任务发布后端v2(重点人员督察列表界面)

master
pengwei 5 months ago
parent
commit
0341b99335
  1. 2
      src/main/java/com/biutag/supervision/service/SupTaskService.java

2
src/main/java/com/biutag/supervision/service/SupTaskService.java

@ -63,7 +63,7 @@ public class SupTaskService extends ServiceImpl<SupTaskMapper, SupTask> {
page.getRecords().forEach(s->{
List<SupTaskPerson> problems =personService.list(new LambdaQueryWrapper<SupTaskPerson>().eq(SupTaskPerson::getTaskId,s.getId()));
if(CollectionUtil.isNotEmpty(problems)){
s.setPersons(problems.stream().map(SupTaskPerson::getName).collect(Collectors.joining(",")));
s.setPersons(problems.stream().map(SupTaskPerson::getName).distinct().collect(Collectors.joining(",")));
}
});

Loading…
Cancel
Save