|
|
@@ -365,10 +365,12 @@ public class ProjectLibManage { |
|
|
|
.eq(ProjectApplication::getProjectCode, project.getProjectCode()) |
|
|
|
.eq(ProjectApplication::getProjectVersion, project.getVersion()) |
|
|
|
.eq(ProjectApplication::getIsConstruct, Boolean.TRUE)); |
|
|
|
projectApplicationService.removeBatchByIds(applications); |
|
|
|
List<Long> applicationIds = applications.stream().map(ProjectApplication::getId).collect(Collectors.toList()); |
|
|
|
projectCoreBusinessIndicatorsService.remove(Wrappers.lambdaQuery(ProjectCoreBusinessIndicators.class) |
|
|
|
.in(ProjectCoreBusinessIndicators::getApplicationId,applicationIds)); |
|
|
|
if (CollUtil.isNotEmpty(applications)) { |
|
|
|
projectApplicationService.removeBatchByIds(applications); |
|
|
|
List<Long> applicationIds = applications.stream().map(ProjectApplication::getId).collect(Collectors.toList()); |
|
|
|
projectCoreBusinessIndicatorsService.remove(Wrappers.lambdaQuery(ProjectCoreBusinessIndicators.class) |
|
|
|
.in(ProjectCoreBusinessIndicators::getApplicationId,applicationIds)); |
|
|
|
} |
|
|
|
|
|
|
|
if (isApp && CollUtil.isNotEmpty(projectDto.getApplicationList())) { |
|
|
|
Project finalProject = project; |
|
|
@@ -508,10 +510,13 @@ public class ProjectLibManage { |
|
|
|
.in(CollUtil.isNotEmpty(projectCodeList), ProjectApplication::getProjectCode, projectCodeList) |
|
|
|
.eq(ProjectApplication::getProjectVersion, project.getVersion()) |
|
|
|
.eq(ProjectApplication::getIsConstruct, Boolean.TRUE)); |
|
|
|
projectApplicationService.removeBatchByIds(applications); |
|
|
|
List<Long> applicationIds = applications.stream().map(ProjectApplication::getId).collect(Collectors.toList()); |
|
|
|
projectCoreBusinessIndicatorsService.remove(Wrappers.lambdaQuery(ProjectCoreBusinessIndicators.class) |
|
|
|
.in(ProjectCoreBusinessIndicators::getApplicationId,applicationIds)); |
|
|
|
if (CollUtil.isNotEmpty(applications)) { |
|
|
|
projectApplicationService.removeBatchByIds(applications); |
|
|
|
List<Long> applicationIds = applications.stream().map(ProjectApplication::getId).collect(Collectors.toList()); |
|
|
|
projectCoreBusinessIndicatorsService.remove(Wrappers.lambdaQuery(ProjectCoreBusinessIndicators.class) |
|
|
|
.in(ProjectCoreBusinessIndicators::getApplicationId, applicationIds)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//app |
|
|
|
List<ProjectApplicationDTO> applicationList = projecDto.getApplicationList(); |
|
|
|