拆单 是否完成

This commit is contained in:
wangliwen 2022-07-21 16:58:03 +08:00
parent 7bdbecfe63
commit 92dc144d7d
1 changed files with 2 additions and 2 deletions

View File

@ -260,8 +260,8 @@ public class TAbilityApplicationController {
})); }));
tAbilityApplicationV2DTO.setEnded(re.keySet().stream().map(index -> { tAbilityApplicationV2DTO.setEnded(re.keySet().stream().map(index -> {
List<Map<String, Object>> index_ = re.get(index); List<Map<String, Object>> index_ = re.get(index);
return index_.stream().map(temp -> !(Boolean) temp.get("ended")).findAny().orElse(Boolean.FALSE); // 存在未完成流程 return index_.stream().map(temp -> !(Boolean) temp.get("ended")).filter(i -> i).findAny().orElse(Boolean.FALSE); // 存在未完成流程
}).filter(index -> index).findAny().orElse(Boolean.FALSE)); }).filter(index -> index).map(index -> !index).findAny().orElse(Boolean.TRUE));
tAbilityApplicationV2DTO.setResourceApplication(re); tAbilityApplicationV2DTO.setResourceApplication(re);
return new Result<TAbilityApplicationV2DTO>().ok(tAbilityApplicationV2DTO); return new Result<TAbilityApplicationV2DTO>().ok(tAbilityApplicationV2DTO);
} }