|
|
@@ -6,6 +6,7 @@ import java.math.BigDecimal; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.util.*; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
import java.util.stream.Stream; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
@@ -181,15 +182,15 @@ public class TodoCenterManage { |
|
|
|
List<ProcessTaskVo> todoList = processTaskService.getUserTodoList(req); |
|
|
|
//有退回待办的 |
|
|
|
List<ProcessTaskVo> backList = processTaskService.getBackTodoList(req); |
|
|
|
todoList.addAll(backList); |
|
|
|
todoList.stream().sorted(Comparator.comparing(ProcessTaskVo::getTaskCreateTime).reversed()); |
|
|
|
|
|
|
|
if (CollUtil.isEmpty(todoList)) { |
|
|
|
List<ProcessTaskVo> list = Stream.concat(todoList.stream(),backList.stream()).collect(Collectors.toList()); |
|
|
|
list.stream().filter(Objects::nonNull).sorted(Comparator.comparing(ProcessTaskVo::getTaskCreateTime).reversed()); |
|
|
|
|
|
|
|
if (CollUtil.isEmpty(list)) { |
|
|
|
return PageVo.empty(); |
|
|
|
} |
|
|
|
|
|
|
|
todoList = todoList.stream().filter(Objects::nonNull).collect(Collectors.toList()); |
|
|
|
List<ProcessTaskVo> userTodoList = todoList.stream() |
|
|
|
List<ProcessTaskVo> userTodoList = list.stream() |
|
|
|
.skip((long) (pageNumber - 1) * pageSize) |
|
|
|
.limit(pageSize) |
|
|
|
.collect(Collectors.toList()); |
|
|
|