Browse Source

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

liutao 7 months ago
parent
commit
da195daee0

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

@@ -324,8 +324,8 @@ public class ProjectAuditServiceImpl extends ServiceImpl<ProjectAuditMapper, Pro
             ProjectOwnerComprehensiveEvaluation projectOwnerComprehensiveEvaluation = measurement(projectAuditInfo.getId(),projectAuditInfo);
             List<String> errors = projectOwnerComprehensiveEvaluation.getErrors();
             if (CollectionUtil.isNotEmpty(errors)) {
-                Enterprise enterprise = enterpriseService.getById(projectInformation.getcEnterpriseId());
-                String errorString = enterprise.getCorporateName() + "的企业不准入原因:" + errors.stream().collect(Collectors.joining(","));
+                CEnterpriseHistory enterpriseHistory = enterpriseHistoryService.getById(projectInformation.getcEnterpriseHistoryId());
+                String errorString = enterpriseHistory.getCorporateName() + "的企业不准入原因:" + errors.stream().collect(Collectors.joining(","));
                 projectInformation.setErrorsString(errorString);
             }
             projectOwnerComprehensiveEvaluation.setProjectAuditId(projectAuditInfo.getId());