Bläddra i källkod

绩效考核 还没做完

ys321973351 1 år sedan
förälder
incheckning
f6243b164f

+ 5 - 1
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/flowpath/service/impl/ItdmRunFlowPathStepServiceImpl.java

@@ -47,7 +47,11 @@ public class ItdmRunFlowPathStepServiceImpl extends ServiceImpl<ItdmRunFlowPathS
 
     @Override
     public void saveData(ItdmSaveRunFlowPath saveRunFlowPath) {
-
+        ItdmRunFlowPathStep select = this.baseMapper.selectById(saveRunFlowPath.getRunFlowPathStep());
+        ItdmRunFlowPath itdmRunFlowPath = this.itdmRunFlowPathMapper.selectById(select.getRunFlowPath());
+        if (!itdmRunFlowPath.getDqSetp().equals(select.getFlowPathSetp())) {
+            throw new JeecgBootException("当前节点不是在进行中");
+        }
         ItdmRunFlowPathStep itdmRunFlowPathStep = new ItdmRunFlowPathStep();
         itdmRunFlowPathStep.setId(saveRunFlowPath.getRunFlowPathStep());
         itdmRunFlowPathStep.setSaveData(saveRunFlowPath.getSaveData());