|
|
@@ -30,8 +30,6 @@ import java.util.Objects; |
|
|
|
public class ProjectApplicationServiceImpl extends ServiceImpl<ProjectApplicationMapper, ProjectApplication> |
|
|
|
implements IProjectApplicationService { |
|
|
|
|
|
|
|
private final IProjectApplicationService applicationService; |
|
|
|
|
|
|
|
private final IProjectCoreBusinessIndicatorsService projectCoreBusinessIndicatorsService; |
|
|
|
|
|
|
|
@Override |
|
|
@@ -43,7 +41,7 @@ public class ProjectApplicationServiceImpl extends ServiceImpl<ProjectApplicatio |
|
|
|
|
|
|
|
@Override |
|
|
|
public void saveApplication(Project project,Project oldProject,Boolean isConstruct) { |
|
|
|
List<ProjectApplication> apps = applicationService.list(Wrappers.lambdaQuery(ProjectApplication.class) |
|
|
|
List<ProjectApplication> apps = list(Wrappers.lambdaQuery(ProjectApplication.class) |
|
|
|
.eq(ProjectApplication::getProjectCode, oldProject.getProjectCode()) |
|
|
|
.eq(ProjectApplication::getProjectVersion, oldProject.getVersion())); |
|
|
|
if(CollUtil.isNotEmpty(apps)){ |
|
|
@@ -55,7 +53,7 @@ public class ProjectApplicationServiceImpl extends ServiceImpl<ProjectApplicatio |
|
|
|
if(Objects.nonNull(isConstruct)){ |
|
|
|
app.setIsConstruct(isConstruct); |
|
|
|
} |
|
|
|
applicationService.save(app); |
|
|
|
save(app); |
|
|
|
|
|
|
|
//核心业务 |
|
|
|
List<ProjectCoreBusinessIndicators> cores = projectCoreBusinessIndicatorsService.list(Wrappers.lambdaQuery(ProjectCoreBusinessIndicators.class) |
|
|
|