fix: scc流程不显示单线审核节点

This commit is contained in:
2024-08-06 15:36:57 +08:00
parent 02619f8034
commit 4032fa8a6f
@@ -199,7 +199,7 @@ public class ProcessNodeService extends ServiceImpl<ProcessNodeMapper, ProcessNo
variable = runtimeService.getVariable(mainInstanceId, DISTRIBUTE);
}
boolean distribute = ObjectUtil.isNotNull(variable) && YesOrNoEnum.YES.getValue().equals(variable.toString());
boolean distribute = ObjectUtil.isNotNull(variable) && (boolean) variable;
if (!distribute) {
processNodeList.removeIf(v -> v.getXmlNodeId().equals(MAIN_CHECK_USER_APPROVAL)
|| v.getXmlNodeId().equals(MAIN_CHECK_USER_COLLECT));