From 0415688c241396433355e417d37a4f17d67d6f43 Mon Sep 17 00:00:00 2001 From: tyty Date: Mon, 20 Mar 2023 15:02:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9F=A5=E8=AF=A2=E7=AB=99?= =?UTF-8?q?=E7=82=B9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operational/alert/controller/AbnormalAlarmController.java | 7 +++++++ .../hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.java | 2 ++ .../hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.xml | 4 ++++ .../operational/alert/service/HistoryAbnormalAlarmService.java | 2 ++ .../alert/service/impl/HistoryAbnormalAlarmServiceImpl.java | 5 +++++ 5 files changed, 20 insertions(+) diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/controller/AbnormalAlarmController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/controller/AbnormalAlarmController.java index b5f6d1b..3f5163a 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/controller/AbnormalAlarmController.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/controller/AbnormalAlarmController.java @@ -52,6 +52,13 @@ public class AbnormalAlarmController extends BladeController { return R.data(pages); } + @GetMapping("/queryStationName") + @ApiOperationSupport(order = 0) + @ApiOperation(value = "查询站点") + public R> queryStationName() { + List res = service.queryStationName(); + return R.data(res); + } /** * 详情 */ diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.java index 3f330b4..d83996f 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.java @@ -21,4 +21,6 @@ public interface HistoryAbnormalAlarmMapper extends UserDataScopeBaseMapper selectPageList(IPage page, String type, List stations); List getAlarmEntity(@Param("type") String type,@Param("stationName") String stationName,@Param("startTime") Date startTime,@Param("endTime") Date endTime); + + List getStationName(); } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.xml b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.xml index a8e7014..8d2cbc8 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.xml +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/alert/mapper/HistoryAbnormalAlarmMapper.xml @@ -23,6 +23,10 @@ + +