deal with

This commit is contained in:
wangliwen 2022-07-19 16:52:40 +08:00
parent 58ba499f79
commit 6954af5ba4
1 changed files with 1 additions and 2 deletions

View File

@ -193,9 +193,8 @@ public class ActTaskService extends BaseServiceImpl {
} else { } else {
ArrayList<TaskDTO> recordLists = new ArrayList<>(); ArrayList<TaskDTO> recordLists = new ArrayList<>();
recordLists.addAll(taskDtoList.stream() recordLists.addAll(taskDtoList.stream()
.sorted(Comparator.comparing(TaskDTO::getCreateTime).reversed())
.distinct() .distinct()
.skip((curPage - 1) * limit) .sorted(Comparator.comparing(TaskDTO::getCreateTime).reversed())
.limit(limit) .limit(limit)
.collect(Collectors.toList()) .collect(Collectors.toList())
); );