。。。
This commit is contained in:
parent
0cd5c87689
commit
58ba499f79
|
@ -192,7 +192,13 @@ public class ActTaskService extends BaseServiceImpl {
|
||||||
page.setTotal(0);
|
page.setTotal(0);
|
||||||
} else {
|
} else {
|
||||||
ArrayList<TaskDTO> recordLists = new ArrayList<>();
|
ArrayList<TaskDTO> recordLists = new ArrayList<>();
|
||||||
recordLists.addAll(taskDtoList.stream().distinct().skip((curPage - 1) * limit).limit(limit).collect(Collectors.toList()));
|
recordLists.addAll(taskDtoList.stream()
|
||||||
|
.sorted(Comparator.comparing(TaskDTO::getCreateTime).reversed())
|
||||||
|
.distinct()
|
||||||
|
.skip((curPage - 1) * limit)
|
||||||
|
.limit(limit)
|
||||||
|
.collect(Collectors.toList())
|
||||||
|
);
|
||||||
page.setRecords(recordLists);
|
page.setRecords(recordLists);
|
||||||
page.setTotal(count.stream().mapToLong(index -> index.longValue()).sum());
|
page.setTotal(count.stream().mapToLong(index -> index.longValue()).sum());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue