瀏覽代碼

合同线下签署逻辑优化

liuj 2 天之前
父節點
當前提交
792942d60e

+ 7 - 3
src/main/java/com/sunxung/factoring/service/financing/contract/impl/ContractMakingServiceImpl.java

@@ -806,13 +806,17 @@ public class ContractMakingServiceImpl implements ContractMakingService {
             CFinancingBasicInfo financingBasicInfo = financingBasicInfoService.getById(quotaDisburse.getFinancingBasicInfoId());
 
             if (contractInfo.getConclusion().equals(ConstantConversionUtil.APPROVAL_RESULT_PASS)) {
-                //修改融资申请当前阶段
-                financingBasicInfo.setCurrentStage(FinancingCurrentStageEnum.CONTRACT_SIGNING.getCode());
-                financingBasicInfoService.updateById(financingBasicInfo);
                 if (contractInfo.getContractSignMethod() != null && contractInfo.getContractSignMethod().equals(0)) {
                     //如果是线下签
+                    //修改融资申请当前阶段为融资申请
+                    financingBasicInfo.setCurrentStage(FinancingCurrentStageEnum.CONTRACT_SIGNING.getCode());
+                    financingBasicInfoService.updateById(financingBasicInfo);
                     procVariables.put(ConstantUtil.PAYMENT_APPLY_ASSIGNEE, assigneeService.getIdByBusiness(financingBasicInfo.getId(), key, ConstantUtil.ASSIGNEE_PROJECT_MANAGER));
                 } else if (contractInfo.getContractSignMethod().equals(1)) {
+                    //如果是电子签
+                    //修改融资申请当前阶段为付款申请
+                    financingBasicInfo.setCurrentStage(FinancingCurrentStageEnum.PAYMENT_APPLY.getCode());
+                    financingBasicInfoService.updateById(financingBasicInfo);
                     procVariables.put(ConstantUtil.CONTRACT_SIGNING_ASSIGNEE, assigneeService.getIdByBusiness(financingBasicInfo.getId(), key, ConstantUtil.ASSIGNEE_C_SUPPLIER));
 
                     List<String> electronicSigns = contractInfo.getElectronicSign();