소스 검색

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

liutao 5 달 전
부모
커밋
da195daee0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/com/sunxung/factoring/service/project/impl/ProjectAuditServiceImpl.java

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