|
@@ -86,11 +86,15 @@ public class WmTaskSubmissionRuleController {
|
|
|
taskTypeList.forEach(map -> {
|
|
|
List<Map<String, Object>> children = (List<Map<String, Object>>) map.get("children");
|
|
|
if (CollUtil.isNotEmpty(children)) {
|
|
|
- // 拼接是否启用标记
|
|
|
+ // child添加是否启用标记
|
|
|
children.forEach(childMap -> {
|
|
|
String taskTypeId = (String) childMap.get("taskTypeId");
|
|
|
childMap.put("enableFlag", ArrayUtil.contains(taskTypeIds, taskTypeId));
|
|
|
});
|
|
|
+ // 父级添加是否启用标记
|
|
|
+ map.put("enableFlag", children.stream().anyMatch(childMap -> Boolean.TRUE.equals(childMap.get("enableFlag"))));
|
|
|
+ } else {
|
|
|
+ map.put("enableFlag", Boolean.FALSE);
|
|
|
}
|
|
|
});
|
|
|
}
|