ソースを参照

feat(交通银行):ocr识别

liutao 1 週間 前
コミット
66245746c9
共有1 個のファイルを変更した5 個の追加0 個の削除を含む
  1. 5 0
      src/main/java/com/inkasso/factoring/creditmanagement/service/impl/SupplierInfoServiceImpl.java

+ 5 - 0
src/main/java/com/inkasso/factoring/creditmanagement/service/impl/SupplierInfoServiceImpl.java

@@ -1055,6 +1055,11 @@ public class SupplierInfoServiceImpl extends ServiceImpl<SupplierInfoMapper, Sup
         //保存征信信息
         creditInvestigationInfoService.lambdaUpdate().eq(CreditInvestigationInfo::getcEnterpriseId, enterprise.getId()).remove();
         List<CreditInvestigationInfo> creditInvestigationInfoList = enterprise.getCreditInvestigationInfoList();
+        List<CreditInvestigationInfo> collect = creditInvestigationInfoList.stream().filter(r -> r.getType().equals(CreditInvestigationTypeEnums.TWO.getCode())).collect(Collectors.toList());
+        CreditInvestigationInfo investigationInfo = collect.get(0);
+        //填充大股东
+        enterpriseService.lambdaUpdate().eq(Enterprise::getId,enterprise.getId()).set(Enterprise::getMajorShareholders,investigationInfo.getName()).update();
+        enterprise.setMajorShareholders(investigationInfo.getName());
         if (CollectionUtil.isNotEmpty(creditInvestigationInfoList)) {
             for (CreditInvestigationInfo creditInvestigationInfo : creditInvestigationInfoList) {
                 List<Long> fileList = creditInvestigationInfo.getFileList();