diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java b/hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java index 44d2c82..cd03c56 100644 --- a/hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java +++ b/hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java @@ -212,7 +212,8 @@ public class WorkbenchManage { initWorkbenchDefaultParam(req); LambdaQueryWrapper projectQuery = Wrappers.lambdaQuery(Project.class) .select(Project::getReviewAmount, Project::getApprovalAmount, Project::getId, Project::getStage, - Project::getApprovalGovOwnFinanceAmount, Project::getApprovalGovSuperiorFinanceAmount) + Project::getApprovalGovOwnFinanceAmount, Project::getApprovalGovSuperiorFinanceAmount, + Project::getDeclareAmount) .eq(Project::getProjectYear, req.getProjectYear()) .eq(req.getUnitStrip() != null, Project::getUnitStrip, req.getUnitStrip()) .ne(Project::getStatus, ProjectStatus.CHANGE_APPLY_PASSED.getCode()) @@ -225,6 +226,7 @@ public class WorkbenchManage { } List validProjects = CollUtils.filter(projects, w -> !ProjectStatus.STOPPED.eq(w.getStage())); retDetail.setTotalApprovalAmount(DecimalUtil.sum(validProjects, Project::getApprovalAmount)); + retDetail.setTotalDeclareAmount(DecimalUtil.sum(validProjects, Project::getDeclareAmount)); retDetail.setTotalReviewAmount(DecimalUtil.sum(validProjects, Project::getReviewAmount)); retDetail.setCurrOrgApprovalAmount(DecimalUtil.sum(validProjects, Project::getApprovalGovOwnFinanceAmount)); retDetail.setUpperOrgApprovalAmount(DecimalUtil.sum(validProjects, Project::getApprovalGovSuperiorFinanceAmount)); diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/workbench/model/vo/ProjectTotalViewVO.java b/hz-pm-api/src/main/java/com/hz/pm/api/workbench/model/vo/ProjectTotalViewVO.java index 69e377d..22b22e5 100644 --- a/hz-pm-api/src/main/java/com/hz/pm/api/workbench/model/vo/ProjectTotalViewVO.java +++ b/hz-pm-api/src/main/java/com/hz/pm/api/workbench/model/vo/ProjectTotalViewVO.java @@ -26,6 +26,9 @@ public class ProjectTotalViewVO { @ApiModelProperty("替代后系统总数") private Integer totalTargetSystemCount; + @ApiModelProperty("申报总金额") + private BigDecimal totalDeclareAmount; + @ApiModelProperty("评审金额") private BigDecimal totalReviewAmount;