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