Переглянути джерело

feat(销售合同):退回重新提交暂存

Wangyafan 5 місяців тому
батько
коміт
f8d1621822

+ 4 - 4
src/main/java/com/sunxung/factoring/service/salescontractmanagement/impl/SalesContractServiceImpl.java

@@ -125,10 +125,6 @@ public class SalesContractServiceImpl extends ServiceImpl<SalesContractMapper, C
 
             //开启流程
             startSalesContractProcess(salesContractManagement);
-            //变更项目的是否已做销售合同标识
-            projectInformationService.lambdaUpdate().set(ProjectInformation::getSales, 1)
-                    .eq(ProjectInformation::getBusinessNumber, salesContractManagement.getBusinessNumber())
-                    .update();
         } else {
             updateById(salesContractManagement);
             //文件处理
@@ -144,6 +140,10 @@ public class SalesContractServiceImpl extends ServiceImpl<SalesContractMapper, C
             }
 
         }
+        //变更项目的是否已做销售合同标识
+        projectInformationService.lambdaUpdate().set(ProjectInformation::getSales, 1)
+                .eq(ProjectInformation::getBusinessNumber, salesContractManagement.getBusinessNumber())
+                .update();
 
         //查询taskId
         BusinessProcessingLog lastLog = businessProcessingLogService