deal with
This commit is contained in:
parent
58ba499f79
commit
6954af5ba4
|
@ -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())
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue