Explorar el Código

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

liutao hace 1 mes
padre
commit
5a96f0f226

+ 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)) {