From d01a2ea267b058c2340bb3ca42481e5628d1f7c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?niohe=C2=B7erbao?= Date: Thu, 3 Aug 2023 10:59:32 +0800 Subject: [PATCH] queryYearBO --- .../ningdatech/pmapi/dashboard/controller/DashboardController.java | 2 +- .../ningdatech/pmapi/dashboard/manage/DashboardProjectManage.java | 7 +++++-- .../ningdatech/pmapi/dashboard/model/basic/QueryTimeYearBO.java | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dashboard/controller/DashboardController.java b/pmapi/src/main/java/com/ningdatech/pmapi/dashboard/controller/DashboardController.java index be73382..3352074 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/dashboard/controller/DashboardController.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dashboard/controller/DashboardController.java @@ -25,7 +25,7 @@ import javax.validation.Valid; */ @RestController -@RequestMapping("/api/v1/dashboard/") +@RequestMapping("/api/v1/dashboard") @Validated @RequiredArgsConstructor @Api(value = "DashboardController", tags = "驾驶舱相关接口") diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dashboard/manage/DashboardProjectManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/dashboard/manage/DashboardProjectManage.java index 7eb05db..104d445 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/dashboard/manage/DashboardProjectManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dashboard/manage/DashboardProjectManage.java @@ -25,7 +25,6 @@ public class DashboardProjectManage { private static String timeFormat = "%s-01-01 00:00:00"; - /** * 查询年份BO 装配 * @@ -56,17 +55,21 @@ public class DashboardProjectManage { } public DashboardInvestmentSummaryVO getInvestmentSummary(QueryYearPO queryYearPO) { - Integer year = queryYearPO.getYear(); + QueryTimeYearBO queryTimeYearBO = getQueryTimeYearBO(queryYearPO.getYear()); return null; } public DashboardProjectCntSummaryVO getProjectCntSummary(QueryYearPO queryYearPO) { + QueryTimeYearBO queryTimeYearBO = getQueryTimeYearBO(queryYearPO.getYear()); + return null; } public DashboardProjectSummaryVO getProjectSummary(QueryYearPO queryYearPO) { + QueryTimeYearBO queryTimeYearBO = getQueryTimeYearBO(queryYearPO.getYear()); + return null; } } diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/dashboard/model/basic/QueryTimeYearBO.java b/pmapi/src/main/java/com/ningdatech/pmapi/dashboard/model/basic/QueryTimeYearBO.java index 066b646..beca0f2 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/dashboard/model/basic/QueryTimeYearBO.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/dashboard/model/basic/QueryTimeYearBO.java @@ -1,5 +1,6 @@ package com.ningdatech.pmapi.dashboard.model.basic; +import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -11,6 +12,7 @@ import java.time.LocalDateTime; */ @Data +@ApiModel("查询年份起止BO") public class QueryTimeYearBO { @ApiModelProperty("开始年份时间")