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 {
ArrayList<TaskDTO> recordLists = new ArrayList<>();
recordLists.addAll(taskDtoList.stream()
.sorted(Comparator.comparing(TaskDTO::getCreateTime).reversed())
.distinct()
.skip((curPage - 1) * limit)
.sorted(Comparator.comparing(TaskDTO::getCreateTime).reversed())
.limit(limit)
.collect(Collectors.toList())
);