wangliang преди 5 месеца
родител
ревизия
3a76f1dd8d
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      sop-business/src/main/java/com/qmth/sop/business/service/impl/TBSopInfoServiceImpl.java

+ 4 - 1
sop-business/src/main/java/com/qmth/sop/business/service/impl/TBSopInfoServiceImpl.java

@@ -1869,7 +1869,10 @@ public class TBSopInfoServiceImpl extends ServiceImpl<TBSopInfoMapper, TBSopInfo
         tbCrmDetailService.updateById(tbCrmDetail);
         tbDingService.resetDingExceptionBySopNo(tbSopInfo.getSopNo());
         tfCustomFlowEntityService.updateById(tfCustomFlowEntity);
-        tbSopInfoService.sopProxySystemApprove(tfCustomFlowEntity.getFlowId(), tbSopInfo.getSopNo());
+        if (tfCustomFlow.getType() == TFCustomTypeEnum.CLOUD_MARK_SOP_FLOW
+                && tfFlowApprove.getSetup().intValue() >= 3) {
+            tbSopInfoService.sopProxySystemApprove(tfCustomFlowEntity.getFlowId(), tbSopInfo.getSopNo());
+        }
         return true;
     }