2 Commits 92be1a6420 ... be9e307be0

Author SHA1 Message Date
  liutao be9e307be0 Merge remote-tracking branch 'origin/smb' into smb 1 month ago
  liutao 14c0764f02 fix(苏商银行):字典类 1 month ago

+ 7 - 4
src/main/java/com/sunxung/factoring/service/smb/impl/SmbContractInfoServiceImpl.java

@@ -26,10 +26,7 @@ import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
 import java.math.BigDecimal;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
+import java.util.*;
 
 /**
  * <p>
@@ -81,6 +78,12 @@ public class SmbContractInfoServiceImpl extends ServiceImpl<SmbContractInfoMappe
         FinancingFromInvestorsNotice financingFromInvestorsNotice = financingFromInvestorsNoticeService.lambdaQuery().eq(FinancingFromInvestorsNotice::getFinancingFromInvestorsHistoryId, financingFromInvestorsHistory.getId()).one();
         //苏商签署合同
         SnbContractSign contractSign = new SnbContractSign();
+        String bizNo = UUID.randomUUID().toString().replace("-","");
+        if(bizNo.length() > 32){
+            bizNo = bizNo.substring(0,32);
+        }
+        contractSign.setBizNo(bizNo);
+        contractSign.setProductLimitNo(financingFromInvestorsNotice.getLimitNumber());
         ContractSignBizJsonDto contractSignBizJson = new ContractSignBizJsonDto();
         //主合同
         ContractElectronicInfo contractElectronicInfoMaster = contractElectronicInfoService.getById(smbMasterContractInfo.getContractElectronicInfoId());