Browse Source

feat(交通银行):ocr识别

liutao 1 month ago
parent
commit
66245746c9

+ 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();