Prechádzať zdrojové kódy

作废、sop编辑修改

wangliang 1 rok pred
rodič
commit
b218af9071

+ 8 - 2
sop-business/src/main/java/com/qmth/sop/business/service/impl/TBSopInfoServiceImpl.java

@@ -913,7 +913,10 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
                     processLimitedTime = tfFlowApprove.getUpdateTime();
                     execField = ProcessLimitedEnum.APPROVE_RADIO.getKey();
                 } else if (tfFlowApprove.getSetup().intValue() == 5) {//扫描准备
-                    tbSopInfoService.sopDeviceInOutSave(map, 4);
+                    String source = (String) map.get(SystemConstant.SOURCE);
+                    if (Objects.nonNull(source) && !Objects.equals(source, "save")) {
+                        tbSopInfoService.sopDeviceInOutSave(map, 4);
+                    }
                     FlowTaskResult flowTaskResult = this.getFormProperties(tfCustomFlowEntity, 2);
                     processLimitedTime = this.getProcessLimitedTime(flowTaskResult,
                             ProcessLimitedEnum.SCAN_START_TIME.getKey());
@@ -998,7 +1001,10 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
                     processLimitedTime = tfFlowApprove.getUpdateTime();
                     execField = ProcessLimitedEnum.APPROVE_RADIO.getKey();
                 } else if (tfFlowApprove.getSetup().intValue() == 5) {//现场环境测试/环境部署时间
-                    tbSopInfoService.sopDeviceInOutSave(map, 4);
+                    String source = (String) map.get(SystemConstant.SOURCE);
+                    if (Objects.nonNull(source) && !Objects.equals(source, "save")) {
+                        tbSopInfoService.sopDeviceInOutSave(map, 4);
+                    }
                     FlowTaskResult flowTaskResult = this.getFormProperties(tfCustomFlowEntity, 2);
                     processLimitedTime = this.getProcessLimitedTime(flowTaskResult,
                             ProcessLimitedEnum.ENV_DEPLOYMENT_TIME.getKey());