|
|
|
@ -160,6 +160,7 @@ public class HwMonitorPlatformController extends BaseController {
|
|
|
|
|
* */
|
|
|
|
|
@PostMapping("/SubDevice")
|
|
|
|
|
public SubDeviceSumVo subDevice(Long sceneId){
|
|
|
|
|
|
|
|
|
|
SubDeviceSumVo subDeviceSumVos = hwMonitorUnitService.selectSubDeviceSum(sceneId);
|
|
|
|
|
|
|
|
|
|
return subDeviceSumVos;
|
|
|
|
@ -170,6 +171,7 @@ public class HwMonitorPlatformController extends BaseController {
|
|
|
|
|
* */
|
|
|
|
|
@PostMapping("/ElectronicNumVo")
|
|
|
|
|
public TableDataInfo ElectronicNumVo(Long sceneId){
|
|
|
|
|
|
|
|
|
|
List<EleMonitorDeviceSumVo> eleMonitorDeviceSumVos = hwElectronicFenceService.selectEleTypeNums(sceneId);
|
|
|
|
|
return getDataTable(eleMonitorDeviceSumVos);
|
|
|
|
|
}
|
|
|
|
@ -180,6 +182,7 @@ public class HwMonitorPlatformController extends BaseController {
|
|
|
|
|
@PostMapping("/selectMonitorUnitSub")
|
|
|
|
|
//ok
|
|
|
|
|
public HwMonitorUnit selectMonitorUnitSub(Long monitorUnitId){
|
|
|
|
|
|
|
|
|
|
HwMonitorUnit hwMonitorUnits = hwMonitorUnitService.selectHwMonitorUnitByMonitorUnitId(monitorUnitId);
|
|
|
|
|
|
|
|
|
|
return hwMonitorUnits;
|
|
|
|
@ -199,9 +202,10 @@ public class HwMonitorPlatformController extends BaseController {
|
|
|
|
|
* 设备汇总
|
|
|
|
|
* */
|
|
|
|
|
@PostMapping("/selectLatestDataByTags")
|
|
|
|
|
public TableDataInfo selectLatestDataByTags(Long monitorUnitId){
|
|
|
|
|
List<Map<String, Object>> list= hwMonitorUnitService.selectLatestDataByTags(monitorUnitId);
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
public R<Map<String, Map<String, Object>>>selectLatestDataByTags(Long monitorUnitId){
|
|
|
|
|
|
|
|
|
|
R<Map<String, Map<String, Object>>> mapR = hwMonitorUnitService.selectLatestDataByTags(monitorUnitId);
|
|
|
|
|
return mapR;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 场景选择
|
|
|
|
@ -213,8 +217,9 @@ public class HwMonitorPlatformController extends BaseController {
|
|
|
|
|
LoginUser loginUser = SecurityUtils.getLoginUser();
|
|
|
|
|
SysUser sysUser = loginUser.getSysUser();
|
|
|
|
|
Long tenantId = sysUser.getTenantId();
|
|
|
|
|
List<HwScene> hwScenes = hwSceneService.selectHwSceneByTenantId(tenantId);
|
|
|
|
|
hwScenes.get(0).setDefaultFlag("1");
|
|
|
|
|
List<HwScene> hwScenes = hwSceneService.selectHwSceneByTenantId(1l);
|
|
|
|
|
if (hwScenes.size()!=0){
|
|
|
|
|
hwScenes.get(0).setDefaultFlag("1");}
|
|
|
|
|
return getDataTable(hwScenes);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|