Browse Source

Merge branch '20230731_ls2_operation+early_warning+safety_risk+portrait' of http://git.ningdatech.com/liushuai/project-management into dev

master
PoffyZhang 1 year ago
parent
commit
e8d7273cb2
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> public class ProjectApplicationServiceImpl extends ServiceImpl<ProjectApplicationMapper, ProjectApplication>
implements IProjectApplicationService { implements IProjectApplicationService {


private final IProjectApplicationService applicationService;

private final IProjectCoreBusinessIndicatorsService projectCoreBusinessIndicatorsService; private final IProjectCoreBusinessIndicatorsService projectCoreBusinessIndicatorsService;


@Override @Override
@@ -43,7 +41,7 @@ public class ProjectApplicationServiceImpl extends ServiceImpl<ProjectApplicatio


@Override @Override
public void saveApplication(Project project,Project oldProject,Boolean isConstruct) { 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::getProjectCode, oldProject.getProjectCode())
.eq(ProjectApplication::getProjectVersion, oldProject.getVersion())); .eq(ProjectApplication::getProjectVersion, oldProject.getVersion()));
if(CollUtil.isNotEmpty(apps)){ if(CollUtil.isNotEmpty(apps)){
@@ -55,7 +53,7 @@ public class ProjectApplicationServiceImpl extends ServiceImpl<ProjectApplicatio
if(Objects.nonNull(isConstruct)){ if(Objects.nonNull(isConstruct)){
app.setIsConstruct(isConstruct); app.setIsConstruct(isConstruct);
} }
applicationService.save(app);
save(app);


//核心业务 //核心业务
List<ProjectCoreBusinessIndicators> cores = projectCoreBusinessIndicatorsService.list(Wrappers.lambdaQuery(ProjectCoreBusinessIndicators.class) List<ProjectCoreBusinessIndicators> cores = projectCoreBusinessIndicatorsService.list(Wrappers.lambdaQuery(ProjectCoreBusinessIndicators.class)


Loading…
Cancel
Save