diff --git a/src/main/java/com/biutag/supervision/service/SupTaskService.java b/src/main/java/com/biutag/supervision/service/SupTaskService.java index 64540ae..8244017 100644 --- a/src/main/java/com/biutag/supervision/service/SupTaskService.java +++ b/src/main/java/com/biutag/supervision/service/SupTaskService.java @@ -63,7 +63,7 @@ public class SupTaskService extends ServiceImpl { page.getRecords().forEach(s->{ List problems =personService.list(new LambdaQueryWrapper().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(","))); } });