From 231697d09049306d96ba080dd98ba7301265d022 Mon Sep 17 00:00:00 2001 From: zhouhy Date: Thu, 7 Sep 2023 14:33:01 +0800 Subject: [PATCH] =?UTF-8?q?1.1.3=E7=9B=91=E6=8E=A7=E5=8D=95=E5=85=83?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/HwMonitorUnitController.java | 51 ++++++++++++++----- 1 file changed, 39 insertions(+), 12 deletions(-) diff --git a/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/controller/HwMonitorUnitController.java b/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/controller/HwMonitorUnitController.java index ce91657..8dfa598 100644 --- a/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/controller/HwMonitorUnitController.java +++ b/ruoyi-modules/hw-business/src/main/java/com/ruoyi/business/controller/HwMonitorUnitController.java @@ -63,19 +63,28 @@ public class HwMonitorUnitController extends BaseController } /** * 树状获取监控单元列表 + * @param hwMonitorUnits 监控单元对象 + * @return list + * @throws * */ - @GetMapping("/treeList") + @PostMapping("/treeList") public TableDataInfo treeList(List hwMonitorUnits){ List list = hwMonitorUnitService.selectTreeList(hwMonitorUnits); return getDataTable(list); } - //选择场景 - @GetMapping("/selectHwSceneBySceneModeId") - public TableDataInfo selectHwSceneBySceneModeId(Long sceneModeId){ - List hwScenes = hwSceneService.selectHwSceneBySceneModeId(sceneModeId); - return getDataTable(hwScenes); - } +// /** +// * +// * 选择场景 +// * @param sceneModeId 场景id +// * @return +// */ +// +// @PostMapping("/selectHwSceneBySceneModeId") +// public TableDataInfo selectHwSceneBySceneModeId(Long sceneModeId){ +// List hwScenes = hwSceneService.selectHwSceneBySceneModeId(sceneModeId); +// return getDataTable(hwScenes); +// } /** * 查询3. 设备各类型占所有设备数量百分比饼状图(左下角) * */ @@ -84,21 +93,33 @@ public class HwMonitorUnitController extends BaseController List maps = hwDeviceService.selectDeviceModeNameVo(); return getDataTable(maps); } - //获取有开关属性的设备 + // + /** + * 获取有开关属性的设备 + * @param monitorUnitId 监控单元id + * */ @PostMapping("/selectDeviceByDeviceModeByMonitorUnitId") public Map> selectDeviceByDeviceModeByMonitorUnitId(Long monitorUnitId){ startPage(); Map> maps = hwDeviceService.selectDeviceByDeviceModeByMonitorUnitId(monitorUnitId); return maps; } - //获取直采变量的设备 + /** + * 获取直采变量的设备 + * @param monitorUnitId 监控单元id + */ + @PostMapping("/selectDeviceModeFunctionByFunctionType") public Map> selectDeviceModeFunctionByFunctionType(Long monitorUnitId){ startPage(); Map> maps = hwDeviceService.selectDeviceModeFunctionByFunctionType(monitorUnitId); return maps; } - //设备历史数据 + // + /** + * 设备历史数据 + * @param deviceId 设备id + * */ @PostMapping("/getHistoryData") public TableDataInfo getHistoryData(Long deviceId){ startPage(); @@ -150,8 +171,9 @@ public class HwMonitorUnitController extends BaseController } /** * 获取最子级监控单元数量、设备数量和在线设备数量 + * @param sceneId 场景id * */ - @GetMapping("/SubDevice") + @PostMapping("/SubDevice") public SubDeviceSumVo subDevice(Long sceneId){ SubDeviceSumVo subDeviceSumVos = hwMonitorUnitService.selectSubDeviceSum(sceneId); @@ -159,6 +181,7 @@ public class HwMonitorUnitController extends BaseController } /** * 按电子围栏定位显示其下设备数量,以及报警的设备数量。 + * @param 场景id * */ @PostMapping("/ElectronicNumVo") public AjaxResult ElectronicNumVo(Long sceneId){ @@ -167,8 +190,9 @@ public class HwMonitorUnitController extends BaseController } /** * 获取监控单元详细信息 + * @param 监控单元id * */ - @GetMapping("/selectMonitorUnitSub") + @PostMapping("/selectMonitorUnitSub") //ok public HwMonitorUnit selectMonitorUnitSub(Long monitorUnitId){ HwMonitorUnit hwMonitorUnits = hwMonitorUnitService.selectHwMonitorUnitByMonitorUnitId(monitorUnitId); @@ -177,6 +201,9 @@ public class HwMonitorUnitController extends BaseController } /** * 2. 设备实时在运数量曲线图 + * @param beginTime 开始时间 + * @param endTime 结束时间 + * @param sceneId 场景id * */ @PostMapping("/getDeviceOperations") public Integer selectTdengine(String beginTime,String endTime,Long sceneId){