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;
     }