src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/MobilePosition/MobilePositionController.java
@@ -67,9 +67,9 @@ public ResponseEntity<List<MobilePosition>> 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 @@ }) @GetMapping("/latest/{deviceId}") public ResponseEntity<MobilePosition> 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); } src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java
@@ -62,9 +62,9 @@ @GetMapping("/devices/{deviceId}") public ResponseEntity<Device> 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 @@ @GetMapping("/devices") public PageInfo<Device> 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 @@ @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 @@ @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<DeviceChannel> deviceChannelPageResult = new PageInfo<>(); src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/platform/PlatformController.java
@@ -73,9 +73,9 @@ }) public PageInfo<ParentPlatform> 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 @@ @ResponseBody public ResponseEntity<String> 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 @@ @RequestParam(required = false) Boolean choosed, @RequestParam(required = false) Boolean channelType){ if (logger.isDebugEnabled()) { logger.debug("查询所有所有通道API调用"); } // if (logger.isDebugEnabled()) { // logger.debug("查询所有所有通道API调用"); // } PageInfo<ChannelReduce> channelReduces = null; if (platformId != null ) { channelReduces = storager.queryAllChannelList(page, count, query, online, channelType, platformId, choosed); src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java
@@ -50,9 +50,9 @@ @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<Device> devices; if (start == null || limit ==null) { @@ -98,9 +98,9 @@ @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);