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