Browse Source

新增:工作流补偿机制

zhongwei
ty 7 months ago
parent
commit
cddb21eaf7
  1. 4
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/repair/service/impl/WorkTaskServiceImpl.java

4
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/repair/service/impl/WorkTaskServiceImpl.java

@ -81,9 +81,9 @@ public class WorkTaskServiceImpl extends ServiceImpl<WorkTaskMapper, WorkTaskEnt
@Override @Override
public boolean start(WorkTaskVO workTask) { public boolean start(WorkTaskVO workTask) {
// 步骤1.保存工作任务单 // 步骤1.保存工作任务单
this.saveEntity(JSON.toJSONString(workTask)); String saved = this.saveEntity(JSON.toJSONString(workTask));
// 步骤2.开启检修计划流程 // 步骤2.开启检修计划流程
this.startProcess(JSON.toJSONString(workTask),"work_task"); this.startProcess(JSON.toJSONString(saved),"work_task");
return true; return true;
} }

Loading…
Cancel
Save