From 34fa234c60548045fb0b3b772f7c33d24fc0cb26 Mon Sep 17 00:00:00 2001 From: LiWeiJie <3491909454@qq.com> Date: Mon, 2 Sep 2024 16:05:39 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E9=A6=96=E9=A1=B5=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=8F=90=E4=BE=9B=EF=BC=8C2-=E5=91=8A=E8=AD=A6?= =?UTF-8?q?=E6=95=B0=E9=87=8F=EF=BC=8C7-=E9=A3=8E=E9=99=A9=E9=A2=84?= =?UTF-8?q?=E8=AD=A6=E5=88=86=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...WlsbEarlyWarningInformationController.java | 20 +++++++++++++++++++ .../WlsbEarlyWarningInformationMapper.java | 5 +++++ .../IWlsbEarlyWarningInformationService.java | 5 +++++ ...lsbEarlyWarningInformationServiceImpl.java | 11 ++++++++++ .../WlsbEarlyWarningInformationMapper.xml | 17 ++++++++++++++++ .../wlsbEarly/warningInformation/index.vue | 4 ++-- 6 files changed, 60 insertions(+), 2 deletions(-) diff --git a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wlsbforewarning/WlsbEarlyWarningInformationController.java b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wlsbforewarning/WlsbEarlyWarningInformationController.java index 1da4b2bd..a367bb45 100644 --- a/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wlsbforewarning/WlsbEarlyWarningInformationController.java +++ b/God-Vue-master/god-admin/src/main/java/com/god/web/controller/wlsbforewarning/WlsbEarlyWarningInformationController.java @@ -101,4 +101,24 @@ public class WlsbEarlyWarningInformationController extends BaseController { return toAjax(wlsbEarlyWarningInformationService.deleteWlsbEarlyWarningInformationByIds(ids)); } + + /** + * 获取风险分布数量 + * @return 数据集 + */ + @GetMapping(value = "/get-risk-distribution-count") + public AjaxResult getRiskdistributionCount() + { + return success(wlsbEarlyWarningInformationService.getRiskdistributionCount()); + } + /** + * 获取告警数量 + * @return 数据 + */ + @GetMapping(value = "/get-alarms-count") + public AjaxResult getAlarmsCount() + { + return success((Object) wlsbEarlyWarningInformationService.getAlarmsCount()); + } + } diff --git a/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/mapper/WlsbEarlyWarningInformationMapper.java b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/mapper/WlsbEarlyWarningInformationMapper.java index cfc05038..bfb33a61 100644 --- a/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/mapper/WlsbEarlyWarningInformationMapper.java +++ b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/mapper/WlsbEarlyWarningInformationMapper.java @@ -2,6 +2,7 @@ package com.god.wlsbforewarning.mapper; import com.god.wlsbforewarning.domain.WlsbEarlyWarningInformation; import java.util.List; +import java.util.Map; /** * 预警信息Mapper接口 @@ -58,4 +59,8 @@ public interface WlsbEarlyWarningInformationMapper * @return 结果 */ public int deleteWlsbEarlyWarningInformationByIds(String[] ids); + + List> getRiskdistributionCount(); + + String getAlarmsCount(); } diff --git a/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/IWlsbEarlyWarningInformationService.java b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/IWlsbEarlyWarningInformationService.java index f2dbf657..78028eea 100644 --- a/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/IWlsbEarlyWarningInformationService.java +++ b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/IWlsbEarlyWarningInformationService.java @@ -2,6 +2,7 @@ package com.god.wlsbforewarning.service; import com.god.wlsbforewarning.domain.WlsbEarlyWarningInformation; import java.util.List; +import java.util.Map; /** * 预警信息Service接口 @@ -58,4 +59,8 @@ public interface IWlsbEarlyWarningInformationService * @return 结果 */ public int deleteWlsbEarlyWarningInformationById(String id); + + List> getRiskdistributionCount(); + + String getAlarmsCount(); } diff --git a/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/impl/WlsbEarlyWarningInformationServiceImpl.java b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/impl/WlsbEarlyWarningInformationServiceImpl.java index f314fea1..8a62af70 100644 --- a/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/impl/WlsbEarlyWarningInformationServiceImpl.java +++ b/God-Vue-master/god-system/src/main/java/com/god/wlsbforewarning/service/impl/WlsbEarlyWarningInformationServiceImpl.java @@ -5,6 +5,7 @@ import com.god.wlsbforewarning.domain.WlsbEarlyWarningInformation; import com.god.wlsbforewarning.mapper.WlsbEarlyWarningInformationMapper; import com.god.wlsbforewarning.service.IWlsbEarlyWarningInformationService; import java.util.List; +import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -92,4 +93,14 @@ public class WlsbEarlyWarningInformationServiceImpl implements IWlsbEarlyWarning { return wlsbEarlyWarningInformationMapper.deleteWlsbEarlyWarningInformationById(id); } + + @Override + public List> getRiskdistributionCount() { + return wlsbEarlyWarningInformationMapper.getRiskdistributionCount(); + } + + @Override + public String getAlarmsCount() { + return wlsbEarlyWarningInformationMapper.getAlarmsCount(); + } } diff --git a/God-Vue-master/god-system/src/main/resources/mapper/wlsbforewarning/wlsbEarly/WlsbEarlyWarningInformationMapper.xml b/God-Vue-master/god-system/src/main/resources/mapper/wlsbforewarning/wlsbEarly/WlsbEarlyWarningInformationMapper.xml index dbccb81a..8e81a2f4 100644 --- a/God-Vue-master/god-system/src/main/resources/mapper/wlsbforewarning/wlsbEarly/WlsbEarlyWarningInformationMapper.xml +++ b/God-Vue-master/god-system/src/main/resources/mapper/wlsbforewarning/wlsbEarly/WlsbEarlyWarningInformationMapper.xml @@ -110,4 +110,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{id} + + diff --git a/god-ui/src/views/wlsbEarly/warningInformation/index.vue b/god-ui/src/views/wlsbEarly/warningInformation/index.vue index d31da6f4..c963849e 100644 --- a/god-ui/src/views/wlsbEarly/warningInformation/index.vue +++ b/god-ui/src/views/wlsbEarly/warningInformation/index.vue @@ -205,10 +205,10 @@ - + - +