|
@@ -261,16 +261,17 @@ public class ProjectInformationServiceImpl extends ServiceImpl<ProjectInformatio
|
|
|
ProjectCoreEnterprise projectCoreEnterprise = projectInformation.getProjectCoreEnterprise();
|
|
|
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) {
|
|
|
String projectCoreStatus = projectCoreEnterprise.getStatus();
|
|
|
existsProject.setStatus(projectCoreStatus);
|
|
|
updateById(existsProject);
|
|
|
}
|
|
|
- enterpriseService.updateById(coreEnterprise);
|
|
|
+ enterpriseService.updateById(existsEnterprise);
|
|
|
|
|
|
coreStatus = projectCoreEnterpriseService.getById(projectCoreEnterprise.getId()).getStatus();
|
|
|
if (!coreStatus.equals(ProjectAndEnterpriseStatusEnums.VOTE.getCode())) {
|