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