Commit 90bc983c by 王志超

fix bug: 修复子单自动跳过审批时节点未前进的问题

parent a678e98a
Pipeline #86536 passed with stages
in 1 minute 30 seconds
...@@ -252,7 +252,14 @@ public class ChangeSubFlowBiz { ...@@ -252,7 +252,14 @@ public class ChangeSubFlowBiz {
} else { } else {
// 不需要审批,自动提交到下一节点(审批人保持为行动人自己) // 不需要审批,自动提交到下一节点(审批人保持为行动人自己)
log.info("[CHANGE_SUB_FLOW_START] 部门[{}]不需要审批,自动跳过审批", expectedDepartment); log.info("[CHANGE_SUB_FLOW_START] 部门[{}]不需要审批,自动跳过审批", expectedDepartment);
String autoNextNodeId = flowService.submitFlow(subFlowId, flowDataDTO, uid,
// 重新查询最新的flowDataDTO,因为第一次submitFlow已经改变了flow状态
FlowDataDTO latestFlowDataDTO = flowService.flowDetail(subFlowId);
if (latestFlowDataDTO == null) {
throw ExceptionFactory.createBiz(ResponseCode.DETAIL_FLOW_ERROR, "子流程工单查询错误,不存在");
}
String autoNextNodeId = flowService.submitFlow(subFlowId, latestFlowDataDTO, uid,
ChangeFlowEnum.CHANGE_SUB_FLOW.getTopoId(), JSON.toJSONString(content), true, ChangeFlowEnum.CHANGE_SUB_FLOW.getTopoId(), JSON.toJSONString(content), true,
FlowxOperationEnum.SUBMIT.getName(), "自动审批通过", subFlowRecord.getCreateTime()); FlowxOperationEnum.SUBMIT.getName(), "自动审批通过", subFlowRecord.getCreateTime());
subFlowRecord.setSubFlowNode(autoNextNodeId); subFlowRecord.setSubFlowNode(autoNextNodeId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment