From 6954af5ba4ee4a129698385fcb459357658bcda6 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Tue, 19 Jul 2022 16:52:40 +0800 Subject: [PATCH] deal with --- .../io/renren/modules/activiti/service/ActTaskService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java b/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java index f3d58814..580bd6db 100644 --- a/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java +++ b/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java @@ -193,9 +193,8 @@ public class ActTaskService extends BaseServiceImpl { } else { ArrayList 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()) );