|
|
|
@ -44,6 +44,7 @@ public class HwMonitorPlatformController extends BaseController {
|
|
|
|
|
private IHwElectronicFenceService hwElectronicFenceService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 树状获取监控单元列表
|
|
|
|
|
* @param hwMonitorUnits 监控单元对象
|
|
|
|
@ -51,7 +52,7 @@ public class HwMonitorPlatformController extends BaseController {
|
|
|
|
|
* @throws
|
|
|
|
|
* */
|
|
|
|
|
@GetMapping("/treeList")
|
|
|
|
|
public TableDataInfo treeList(List<HwMonitorUnit> hwMonitorUnits){
|
|
|
|
|
public TableDataInfo treeList(@RequestBody List<HwMonitorUnit> hwMonitorUnits){
|
|
|
|
|
List<HwMonitorUnit> list = hwMonitorUnitService.selectTreeList(hwMonitorUnits);
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
|
|
|
|
@ -113,6 +114,7 @@ public class HwMonitorPlatformController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 查询区域数量站场景区总数百分比
|
|
|
|
|
* 1-左上
|
|
|
|
|
* */
|
|
|
|
|
@GetMapping("/monitorPercentage")
|
|
|
|
|
public TableDataInfo monitorPercentage(){
|
|
|
|
@ -181,11 +183,11 @@ public class HwMonitorPlatformController extends BaseController {
|
|
|
|
|
* */
|
|
|
|
|
@PostMapping("/selectMonitorUnitSub")
|
|
|
|
|
//ok
|
|
|
|
|
public HwMonitorUnit selectMonitorUnitSub(Long monitorUnitId){
|
|
|
|
|
public AjaxResult selectMonitorUnitSub(Long monitorUnitId){
|
|
|
|
|
|
|
|
|
|
HwMonitorUnit hwMonitorUnits = hwMonitorUnitService.selectHwMonitorUnitByMonitorUnitId(monitorUnitId);
|
|
|
|
|
|
|
|
|
|
return hwMonitorUnits;
|
|
|
|
|
return AjaxResult.success(monitorUnitId);
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 2. 设备实时在运数量曲线图
|
|
|
|
@ -194,9 +196,10 @@ public class HwMonitorPlatformController extends BaseController {
|
|
|
|
|
* @param sceneId 场景id
|
|
|
|
|
* */
|
|
|
|
|
@PostMapping("/getDeviceOperations")
|
|
|
|
|
public int[] selectTdengine(String beginTime,String endTime,Long sceneId){
|
|
|
|
|
int ints[] = hwMonitorUnitService.selectTdengine(beginTime,endTime,sceneId);
|
|
|
|
|
return ints;
|
|
|
|
|
public R<Map<Object, Integer>> selectTdengine(String beginTime,String endTime,Long sceneId){
|
|
|
|
|
|
|
|
|
|
Map<Object, Integer> objectIntegerMap = hwMonitorUnitService.selectTdengine(beginTime, endTime, sceneId);
|
|
|
|
|
return R.ok(objectIntegerMap);
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 设备汇总
|
|
|
|
@ -222,4 +225,9 @@ public class HwMonitorPlatformController extends BaseController {
|
|
|
|
|
hwScenes.get(0).setDefaultFlag("1");}
|
|
|
|
|
return getDataTable(hwScenes);
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 报警列表
|
|
|
|
|
* 无alarminfo表
|
|
|
|
|
* */
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|