|
|
@ -46,6 +46,7 @@ public class AppService { |
|
|
|
List<AppFlowableRecordVo> voList = Optional.ofNullable(resultBean.getData().getFlowList()).orElse(new ArrayList<>()).stream().map(m -> JSON.parseObject(JSON.toJSONString(m), AppFlowableRecordVo.class)).collect(Collectors.toList()); |
|
|
|
voList.removeAll(Collections.singleton(null)); |
|
|
|
if (!voList.isEmpty()) { |
|
|
|
voList = voList.stream().sorted(Comparator.comparing(AppFlowableRecordVo::getCreateTime)).collect(Collectors.toList()); |
|
|
|
for (int i = 0; i < voList.size(); i++) { |
|
|
|
AppFlowableRecordVo vo = voList.get(i); |
|
|
|
if (vo.getFinishTime() != null) { |
|
|
@ -150,6 +151,7 @@ public class AppService { |
|
|
|
}); |
|
|
|
// list.sort((t1, t2) -> t2.getTime().compareTo(t1.getTime()));
|
|
|
|
if (progressList.size() > 0) { |
|
|
|
progressList = progressList.stream().sorted(Comparator.comparing(AppFlowableRecordVo::getCreateTime)).collect(Collectors.toList()); |
|
|
|
AppFlowableRecordVo appFlowableRecordVo = progressList.get(progressList.size() - 1); |
|
|
|
if (!"Event_end".equals(appFlowableRecordVo.getTaskDefKey())) { |
|
|
|
String proDefId = appFlowableRecordVo.getProcDefId(); |
|
|
|