diff --git a/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/MobilePosition/MobilePositionController.java b/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/MobilePosition/MobilePositionController.java index 6b4f2b78..860f6a38 100644 --- a/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/MobilePosition/MobilePositionController.java +++ b/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/MobilePosition/MobilePositionController.java @@ -67,9 +67,9 @@ public class MobilePositionController { public ResponseEntity> positions(@PathVariable String deviceId, @RequestParam(required = false) String start, @RequestParam(required = false) String end) { - if (logger.isDebugEnabled()) { - logger.debug("查询设备" + deviceId + "的历史轨迹"); - } +// if (logger.isDebugEnabled()) { +// logger.debug("查询设备" + deviceId + "的历史轨迹"); +// } if (StringUtil.isEmpty(start)) { start = null; @@ -93,9 +93,9 @@ public class MobilePositionController { }) @GetMapping("/latest/{deviceId}") public ResponseEntity latestPosition(@PathVariable String deviceId) { - if (logger.isDebugEnabled()) { - logger.debug("查询设备" + deviceId + "的最新位置"); - } +// if (logger.isDebugEnabled()) { +// logger.debug("查询设备" + deviceId + "的最新位置"); +// } MobilePosition result = storager.queryLatestPosition(deviceId); return new ResponseEntity<>(result, HttpStatus.OK); } diff --git a/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java b/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java index 43b03783..c7508217 100644 --- a/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java +++ b/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java @@ -62,9 +62,9 @@ public class DeviceQuery { @GetMapping("/devices/{deviceId}") public ResponseEntity devices(@PathVariable String deviceId){ - if (logger.isDebugEnabled()) { - logger.debug("查询视频设备API调用,deviceId:" + deviceId); - } +// if (logger.isDebugEnabled()) { +// logger.debug("查询视频设备API调用,deviceId:" + deviceId); +// } Device device = storager.queryVideoDevice(deviceId); return new ResponseEntity<>(device,HttpStatus.OK); @@ -84,9 +84,9 @@ public class DeviceQuery { @GetMapping("/devices") public PageInfo devices(int page, int count){ - if (logger.isDebugEnabled()) { - logger.debug("查询所有视频设备API调用"); - } +// if (logger.isDebugEnabled()) { +// logger.debug("查询所有视频设备API调用"); +// } return storager.queryVideoDeviceList(page, count); } @@ -117,9 +117,9 @@ public class DeviceQuery { @RequestParam(required = false) String query, @RequestParam(required = false) Boolean online, @RequestParam(required = false) Boolean channelType) { - if (logger.isDebugEnabled()) { - logger.debug("查询视频设备通道API调用"); - } +// if (logger.isDebugEnabled()) { +// logger.debug("查询视频设备通道API调用"); +// } if (StringUtils.isEmpty(query)) { query = null; } @@ -234,9 +234,9 @@ public class DeviceQuery { @RequestParam(required = false) String online, @RequestParam(required = false) Boolean channelType){ - if (logger.isDebugEnabled()) { - logger.debug("查询所有视频通道API调用"); - } +// if (logger.isDebugEnabled()) { +// logger.debug("查询所有视频通道API调用"); +// } DeviceChannel deviceChannel = storager.queryChannel(deviceId,channelId); if (deviceChannel == null) { PageInfo deviceChannelPageResult = new PageInfo<>(); diff --git a/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/platform/PlatformController.java b/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/platform/PlatformController.java index 1a0a9b79..5af08375 100644 --- a/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/platform/PlatformController.java +++ b/src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/platform/PlatformController.java @@ -73,9 +73,9 @@ public class PlatformController { }) public PageInfo platforms(@PathVariable int page, @PathVariable int count){ - if (logger.isDebugEnabled()) { - logger.debug("查询所有上级设备API调用"); - } +// if (logger.isDebugEnabled()) { +// logger.debug("查询所有上级设备API调用"); +// } return storager.queryParentPlatformList(page, count); } @@ -187,9 +187,9 @@ public class PlatformController { @ResponseBody public ResponseEntity exitPlatform(@PathVariable String serverGBId){ - if (logger.isDebugEnabled()) { - logger.debug("查询上级平台是否存在API调用:" + serverGBId); - } +// if (logger.isDebugEnabled()) { +// logger.debug("查询上级平台是否存在API调用:" + serverGBId); +// } ParentPlatform parentPlatform = storager.queryParentPlatByServerGBId(serverGBId); return new ResponseEntity<>(String.valueOf(parentPlatform != null), HttpStatus.OK); } @@ -224,9 +224,9 @@ public class PlatformController { @RequestParam(required = false) Boolean choosed, @RequestParam(required = false) Boolean channelType){ - if (logger.isDebugEnabled()) { - logger.debug("查询所有所有通道API调用"); - } +// if (logger.isDebugEnabled()) { +// logger.debug("查询所有所有通道API调用"); +// } PageInfo channelReduces = null; if (platformId != null ) { channelReduces = storager.queryAllChannelList(page, count, query, online, channelType, platformId, choosed); diff --git a/src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java b/src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java index 764a6542..ef839763 100644 --- a/src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java +++ b/src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java @@ -50,9 +50,9 @@ public class ApiDeviceController { @RequestParam(required = false)String q, @RequestParam(required = false)Boolean online ){ - if (logger.isDebugEnabled()) { - logger.debug("查询所有视频设备API调用"); - } +// if (logger.isDebugEnabled()) { +// logger.debug("查询所有视频设备API调用"); +// } JSONObject result = new JSONObject(); List devices; if (start == null || limit ==null) { @@ -98,9 +98,9 @@ public class ApiDeviceController { @RequestParam(required = false)String q, @RequestParam(required = false)Boolean online ){ - if (logger.isDebugEnabled()) { - logger.debug("查询所有视频设备API调用"); - } +// if (logger.isDebugEnabled()) { +// logger.debug("查询所有视频设备API调用"); +// } JSONObject result = new JSONObject(); // 查询设备是否存在 Device device = storager.queryVideoDevice(serial);