From 2f0a51b5c8d7d5f3354d8b3000712d447523f8ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A3=B7=E5=8F=B6?= <14103883+leaf-phos@user.noreply.gitee.com> Date: Mon, 24 Feb 2025 15:55:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E6=8E=A5=E5=8F=A3=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/service/DashboardProjectService.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/ruoyi-service/src/main/java/com/ruoyi/dashboard/project/service/DashboardProjectService.java b/ruoyi-service/src/main/java/com/ruoyi/dashboard/project/service/DashboardProjectService.java index 81f86fe..b48b5e8 100644 --- a/ruoyi-service/src/main/java/com/ruoyi/dashboard/project/service/DashboardProjectService.java +++ b/ruoyi-service/src/main/java/com/ruoyi/dashboard/project/service/DashboardProjectService.java @@ -29,7 +29,7 @@ public class DashboardProjectService { List result = new ArrayList<>(); // 查询每月新增的项目数 - List startList = this.selectCoungGroupByStartMonth(query); + List startList = this.selectCountGroupByStartMonth(query); // 查询每月完成的项目数 List finishList = this.selectCountGroupByCompleteMonth(query); @@ -112,13 +112,6 @@ public class DashboardProjectService { return projectService.selectCount(query); } - // 按月查询新增项目数 - public List selectCountGroupByCreateMonth(MonthProjectQuery query) { - ProjectQuery projectQuery = new ProjectQuery(); - projectQuery.setCreateYear(query.getYear()); - return projectService.selectCountGroupByCreateMonth(projectQuery); - } - // 按月查询完成项目数 public List selectCountGroupByCompleteMonth(MonthProjectQuery query) { ProjectQuery projectQuery = new ProjectQuery(); @@ -128,7 +121,7 @@ public class DashboardProjectService { } // 按月查询开始项目数 - public List selectCoungGroupByStartMonth(MonthProjectQuery query) { + public List selectCountGroupByStartMonth(MonthProjectQuery query) { ProjectQuery projectQuery = new ProjectQuery(); projectQuery.setStartYear(query.getYear()); projectQuery.setScope(query.getScope());