|
@@ -261,16 +261,17 @@ public class ProjectInformationServiceImpl extends ServiceImpl<ProjectInformatio
|
|
ProjectCoreEnterprise projectCoreEnterprise = projectInformation.getProjectCoreEnterprise();
|
|
ProjectCoreEnterprise projectCoreEnterprise = projectInformation.getProjectCoreEnterprise();
|
|
if (projectCoreEnterprise != null) {
|
|
if (projectCoreEnterprise != null) {
|
|
//核心企业企查查
|
|
//核心企业企查查
|
|
- Enterprise coreEnterprise = enterpriseService.getById(projectCoreEnterprise.getcEnterpriseId());
|
|
|
|
- List<String> coreErrors = qichacha(null, coreEnterprise, projectCoreEnterprise);
|
|
|
|
- coreEnterprise.setErrors(coreErrors);
|
|
|
|
|
|
+ ProjectCoreEnterprise existsProjectCoreEnterprise = projectCoreEnterpriseService.getById(projectCoreEnterprise.getId());
|
|
|
|
+ Enterprise existsEnterprise = enterpriseService.getById(existsProjectCoreEnterprise.getcEnterpriseId());
|
|
|
|
+ List<String> coreErrors = qichacha(null, existsEnterprise, projectCoreEnterprise);
|
|
|
|
+ existsEnterprise.setErrors(coreErrors);
|
|
//业主方
|
|
//业主方
|
|
if (existsProject.getcEnterpriseId() == null) {
|
|
if (existsProject.getcEnterpriseId() == null) {
|
|
String projectCoreStatus = projectCoreEnterprise.getStatus();
|
|
String projectCoreStatus = projectCoreEnterprise.getStatus();
|
|
existsProject.setStatus(projectCoreStatus);
|
|
existsProject.setStatus(projectCoreStatus);
|
|
updateById(existsProject);
|
|
updateById(existsProject);
|
|
}
|
|
}
|
|
- enterpriseService.updateById(coreEnterprise);
|
|
|
|
|
|
+ enterpriseService.updateById(existsEnterprise);
|
|
|
|
|
|
coreStatus = projectCoreEnterpriseService.getById(projectCoreEnterprise.getId()).getStatus();
|
|
coreStatus = projectCoreEnterpriseService.getById(projectCoreEnterprise.getId()).getStatus();
|
|
if (!coreStatus.equals(ProjectAndEnterpriseStatusEnums.VOTE.getCode())) {
|
|
if (!coreStatus.equals(ProjectAndEnterpriseStatusEnums.VOTE.getCode())) {
|
|
@@ -671,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();
|
|
}
|
|
}
|
|
@@ -681,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)) {
|