Browse Source

立项批复 优化

master
PoffyZhang 1 year ago
parent
commit
cd9e6d09a3
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/service/impl/ProjectApplicationServiceImpl.java

+ 2
- 4
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/service/impl/ProjectApplicationServiceImpl.java View File

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


Loading…
Cancel
Save