diff --git a/renren-admin/src/main/java/io/renren/modules/processForm/controller/TAbilityApplicationController.java b/renren-admin/src/main/java/io/renren/modules/processForm/controller/TAbilityApplicationController.java index 306a8289..10eaef71 100644 --- a/renren-admin/src/main/java/io/renren/modules/processForm/controller/TAbilityApplicationController.java +++ b/renren-admin/src/main/java/io/renren/modules/processForm/controller/TAbilityApplicationController.java @@ -260,8 +260,8 @@ public class TAbilityApplicationController { })); tAbilityApplicationV2DTO.setEnded(re.keySet().stream().map(index -> { List> index_ = re.get(index); - return index_.stream().map(temp -> !(Boolean) temp.get("ended")).findAny().orElse(Boolean.FALSE); // 存在未完成流程 - }).filter(index -> index).findAny().orElse(Boolean.FALSE)); + return index_.stream().map(temp -> !(Boolean) temp.get("ended")).filter(i -> i).findAny().orElse(Boolean.FALSE); // 存在未完成流程 + }).filter(index -> index).map(index -> !index).findAny().orElse(Boolean.TRUE)); tAbilityApplicationV2DTO.setResourceApplication(re); return new Result().ok(tAbilityApplicationV2DTO); }