diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectRenewalFundManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectRenewalFundManage.java index 6f60913..cebcc93 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectRenewalFundManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectRenewalFundManage.java @@ -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; }