1.1.3监控单元修改

dev
zhouhy 1 year ago
parent 6d039e253b
commit 231697d090

@ -63,19 +63,28 @@ public class HwMonitorUnitController extends BaseController
}
/**
*
* @param hwMonitorUnits
* @return list
* @throws
* */
@GetMapping("/treeList")
@PostMapping("/treeList")
public TableDataInfo treeList(List<HwMonitorUnit> hwMonitorUnits){
List<HwMonitorUnit> list = hwMonitorUnitService.selectTreeList(hwMonitorUnits);
return getDataTable(list);
}
//选择场景
@GetMapping("/selectHwSceneBySceneModeId")
public TableDataInfo selectHwSceneBySceneModeId(Long sceneModeId){
List<HwScene> hwScenes = hwSceneService.selectHwSceneBySceneModeId(sceneModeId);
return getDataTable(hwScenes);
}
// /**
// *
// * 选择场景
// * @param sceneModeId 场景id
// * @return
// */
//
// @PostMapping("/selectHwSceneBySceneModeId")
// public TableDataInfo selectHwSceneBySceneModeId(Long sceneModeId){
// List<HwScene> hwScenes = hwSceneService.selectHwSceneBySceneModeId(sceneModeId);
// return getDataTable(hwScenes);
// }
/**
* 3.
* */
@ -84,21 +93,33 @@ public class HwMonitorUnitController extends BaseController
List<DeviceModeVo> maps = hwDeviceService.selectDeviceModeNameVo();
return getDataTable(maps);
}
//获取有开关属性的设备
//
/**
*
* @param monitorUnitId id
* */
@PostMapping("/selectDeviceByDeviceModeByMonitorUnitId")
public Map<String, Map<String, Object>> selectDeviceByDeviceModeByMonitorUnitId(Long monitorUnitId){
startPage();
Map<String, Map<String, Object>> maps = hwDeviceService.selectDeviceByDeviceModeByMonitorUnitId(monitorUnitId);
return maps;
}
//获取直采变量的设备
/**
*
* @param monitorUnitId id
*/
@PostMapping("/selectDeviceModeFunctionByFunctionType")
public Map<String, Map<String, Object>> selectDeviceModeFunctionByFunctionType(Long monitorUnitId){
startPage();
Map<String, Map<String, Object>> 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){

Loading…
Cancel
Save