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 656ac606..40f81a53 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 @@ -238,7 +238,7 @@ public class TAbilityApplicationController { put("instanceId", tAbilityApplicationDTOList.get(0).getInstanceId()); // 流程id put("resourceOwnerDept", tAbilityApplicationDTOList.get(0).getResourceOwnerDept()); // 资源所属部门信息 put("resources", resourceDTOS);//申请的该部门的能力资源 - if (tAbilityApplicationDTOList.get(0).getApproveStatus().equals("通过")) { + if (tAbilityApplicationDTOList.get(0).getApproveStatus().contains("通过")) { put("ended", true); } else { put("ended", false); @@ -258,6 +258,10 @@ public class TAbilityApplicationController { return sysDeptDTO.getName(); } })); + 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)); tAbilityApplicationV2DTO.setResourceApplication(re); return new Result().ok(tAbilityApplicationV2DTO); }