Просмотр исходного кода

feat(供应商):审核第一步增加退回

liutao месяцев назад: 7
Родитель
Сommit
f8d0a776c3

+ 2 - 2
src/main/java/com/sunxung/factoring/service/project/impl/ProjectCoreEnterpriseAuditServiceImpl.java

@@ -325,8 +325,8 @@ public class ProjectCoreEnterpriseAuditServiceImpl extends ServiceImpl<ProjectCo
             ProjectCoreEnterpriseComprehensiveEvaluation projectCoreEnterpriseComprehensiveEvaluation = measurement(projectCoreEnterpriseAuditInfo.getId(), projectCoreEnterpriseAuditInfo);
             List<String> errors = projectCoreEnterpriseComprehensiveEvaluation.getErrors();
             if (CollectionUtil.isNotEmpty(errors)) {
-                Enterprise enterprise = enterpriseService.getById(projectCoreEnterprise.getcEnterpriseId());
-                String errorString = enterprise.getCorporateName() + "的企业不准入原因:" + errors.stream().collect(Collectors.joining(","));
+                CEnterpriseHistory enterpriseHistory = enterpriseHistoryService.getById(projectCoreEnterprise.getcEnterpriseHistoryId());
+                String errorString = enterpriseHistory.getCorporateName() + "的企业不准入原因:" + errors.stream().collect(Collectors.joining(","));
                 projectCoreEnterprise.setErrorsString(errorString);
             }
             projectCoreEnterpriseComprehensiveEvaluation.setProjectCoreEnterpriseAuditId(projectCoreEnterpriseAuditInfo.getId());