Browse Source

优化代码

master
PoffyZhang 1 year ago
parent
commit
803445fcc9
1 changed files with 8 additions and 10 deletions
  1. +8
    -10
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectRenewalFundManage.java

+ 8
- 10
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectRenewalFundManage.java View File

@@ -72,17 +72,15 @@ public class ProjectRenewalFundManage {
ProjectRenewalFundDeclarationVO vo = new ProjectRenewalFundDeclarationVO();
BeanUtils.copyProperties(renewal, vo);
// 查询项目信息
if(Objects.nonNull(vo)){
Project project = projectService.getById(renewal.getProjectId());
if(Objects.isNull(project)){
return vo;
}
vo.setApprovalAmount(project.getApprovalAmount());
vo.setProjectName(project.getProjectName());
vo.setProjectType(project.getProjectType());
vo.setStage(project.getStage());
vo.setStatus(project.getStatus());
Project project = projectService.getById(renewal.getProjectId());
if(Objects.isNull(project)){
return vo;
}
vo.setApprovalAmount(project.getApprovalAmount());
vo.setProjectName(project.getProjectName());
vo.setProjectType(project.getProjectType());
vo.setStage(project.getStage());
vo.setStatus(project.getStatus());
return vo;
}



Loading…
Cancel
Save