From 34db7ce5afb6d78985529ad6d42b90157716a3cf Mon Sep 17 00:00:00 2001 From: liukewei Date: Thu, 21 Dec 2023 09:47:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=9F=E8=AE=A1=E5=88=86?= =?UTF-8?q?=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ehs/EhsIndexStatisticsController.java | 7 ++++ .../mapper/EhsIndexStatisticsMapper.java | 1 + .../service/EhsIndexStatisticsService.java | 2 +- .../impl/EhsIndexStatisticsServiceImpl.java | 5 ++- .../mapper/ehs/EhsIndexStatisticsMapper.xml | 35 +++++++++++++++---- ruoyi-ui/src/api/ehs/ehsExamples.js | 10 ++++-- ruoyi-ui/src/views/ehs/ehsExamples/index.vue | 7 ++-- 7 files changed, 54 insertions(+), 13 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsIndexStatisticsController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsIndexStatisticsController.java index f737667..b3ca15f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsIndexStatisticsController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsIndexStatisticsController.java @@ -110,6 +110,13 @@ public class EhsIndexStatisticsController extends BaseController { List list = ehsIndexStatisticsService.getHiddenDangerRankVoList(); return AjaxResult.success(list); } + @ApiOperation("部门上报隐患排名") + @GetMapping("/getHiddenDangerRankVoByDeptIdList") + public AjaxResult getHiddenDangerRankVoByDeptIdList() + { + List list = ehsIndexStatisticsService.getHiddenDangerRankVoByDeptIdList(); + return AjaxResult.success(list); + } /** * 行业领域统计数量 */ diff --git a/ruoyi-system/src/main/java/com/ruoyi/ehsIndexStatistics/mapper/EhsIndexStatisticsMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ehsIndexStatistics/mapper/EhsIndexStatisticsMapper.java index 89753a9..cdb1a1c 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/ehsIndexStatistics/mapper/EhsIndexStatisticsMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/ehsIndexStatistics/mapper/EhsIndexStatisticsMapper.java @@ -20,6 +20,7 @@ public interface EhsIndexStatisticsMapper { List getHiddenDangerSituationList(); List getHiddenDangerSituationByEnterpriseNameList(); List getHiddenDangerRankVoList(); + List getHiddenDangerRankVoByDeptIdList(); List> getEnterpriseMapList(@Param("deptId") Long deptId); List> geteconomicTypeMapList(@Param("deptId") Long deptId); List> getenterpriseScaleMapList(@Param("deptId") Long deptId); diff --git a/ruoyi-system/src/main/java/com/ruoyi/ehsIndexStatistics/service/EhsIndexStatisticsService.java b/ruoyi-system/src/main/java/com/ruoyi/ehsIndexStatistics/service/EhsIndexStatisticsService.java index 71c431e..22a5243 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/ehsIndexStatistics/service/EhsIndexStatisticsService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/ehsIndexStatistics/service/EhsIndexStatisticsService.java @@ -29,7 +29,7 @@ public interface EhsIndexStatisticsService { * 上报隐患排名 */ List getHiddenDangerRankVoList(); - + List getHiddenDangerRankVoByDeptIdList(); List> getEnterpriseMapList(); List> geteconomicTypeMapList(); List> getenterpriseScaleMapList(); diff --git a/ruoyi-system/src/main/java/com/ruoyi/ehsIndexStatistics/service/impl/EhsIndexStatisticsServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ehsIndexStatistics/service/impl/EhsIndexStatisticsServiceImpl.java index 9338eeb..0f6fbe5 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/ehsIndexStatistics/service/impl/EhsIndexStatisticsServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/ehsIndexStatistics/service/impl/EhsIndexStatisticsServiceImpl.java @@ -98,7 +98,10 @@ public class EhsIndexStatisticsServiceImpl implements EhsIndexStatisticsService public List getHiddenDangerRankVoList() { return mapper.getHiddenDangerRankVoList(); } - + @Override + public List getHiddenDangerRankVoByDeptIdList() { + return mapper.getHiddenDangerRankVoByDeptIdList(); + } @Override public List> getEnterpriseMapList() { Long deptId = null; diff --git a/ruoyi-system/src/main/resources/mapper/ehs/EhsIndexStatisticsMapper.xml b/ruoyi-system/src/main/resources/mapper/ehs/EhsIndexStatisticsMapper.xml index 35e4683..c72558a 100644 --- a/ruoyi-system/src/main/resources/mapper/ehs/EhsIndexStatisticsMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/ehs/EhsIndexStatisticsMapper.xml @@ -82,8 +82,12 @@ +