Bladeren bron

feat(苏商银行):合同签署修改

liutao 1 maand geleden
bovenliggende
commit
7446406c6c

+ 1 - 1
build.gradle

@@ -5,7 +5,7 @@ plugins {
 }
 
 group = 'com.inkasso'
-version = '1.0.35-prod'
+version = '1.0.36-prod'
 sourceCompatibility = '1.8'
 
 configurations {

+ 5 - 4
src/main/java/com/inkasso/factoring/creditmanagement/service/impl/ProjectInformationServiceImpl.java

@@ -261,16 +261,17 @@ public class ProjectInformationServiceImpl extends ServiceImpl<ProjectInformatio
         ProjectCoreEnterprise projectCoreEnterprise = projectInformation.getProjectCoreEnterprise();
         if (projectCoreEnterprise != null) {
             //核心企业企查查
-            Enterprise coreEnterprise = enterpriseService.getById(projectCoreEnterprise.getcEnterpriseId());
-            List<String> coreErrors = qichacha(null, coreEnterprise, projectCoreEnterprise);
-            coreEnterprise.setErrors(coreErrors);
+            ProjectCoreEnterprise existsProjectCoreEnterprise = projectCoreEnterpriseService.getById(projectCoreEnterprise.getId());
+            Enterprise existsEnterprise = enterpriseService.getById(existsProjectCoreEnterprise.getcEnterpriseId());
+            List<String> coreErrors = qichacha(null, existsEnterprise, projectCoreEnterprise);
+            existsEnterprise.setErrors(coreErrors);
             //业主方
             if (existsProject.getcEnterpriseId() == null) {
                 String projectCoreStatus = projectCoreEnterprise.getStatus();
                 existsProject.setStatus(projectCoreStatus);
                 updateById(existsProject);
             }
-            enterpriseService.updateById(coreEnterprise);
+            enterpriseService.updateById(existsEnterprise);
 
             coreStatus = projectCoreEnterpriseService.getById(projectCoreEnterprise.getId()).getStatus();
             if (!coreStatus.equals(ProjectAndEnterpriseStatusEnums.VOTE.getCode())) {