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 @@ - + - +