From 92dc144d7d814a998945e54f94abfe90d1239e17 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Thu, 21 Jul 2022 16:58:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=86=E5=8D=95=20=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../processForm/controller/TAbilityApplicationController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }