|
@@ -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())) {
|