소스 검색

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

liutao 1 개월 전
부모
커밋
5a96f0f226
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/main/java/com/inkasso/factoring/creditmanagement/service/impl/ProjectInformationServiceImpl.java

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

@@ -672,7 +672,7 @@ public class ProjectInformationServiceImpl extends ServiceImpl<ProjectInformatio
                 if (projectCore.getCentralizedProcurementPlatform() != null && projectCore.getCentralizedProcurementPlatform() == 1 && betweenYear < 2) {
                     error.add(enterprise.getCorporateName() + "集采平台注册时间少于两年");
                     status = ProjectAndEnterpriseStatusEnums.VOTE.getCode();
-                }else if (projectCore.getCentralizedProcurementPlatform() != null && betweenYear < 5) {
+                }else if (projectCore.getCentralizedProcurementPlatform() != null && projectCore.getCentralizedProcurementPlatform() == 0 &&  betweenYear < 5) {
                     error.add(enterprise.getCorporateName() + "注册时间少于五年");
                     status = ProjectAndEnterpriseStatusEnums.VOTE.getCode();
                 }
@@ -682,6 +682,10 @@ public class ProjectInformationServiceImpl extends ServiceImpl<ProjectInformatio
                 }
             }
             projectCore.setStatus(status);
+            if (CollectionUtil.isNotEmpty(error)) {
+                String errorsString = error.stream().collect(Collectors.joining(","));
+                projectCore.setErrorsString(errorsString);
+            }
             projectCoreEnterpriseService.updateById(projectCore);
         }
         if (CollectionUtil.isNotEmpty(error)) {