Browse Source

去除查询类api调用的日志

pull/212/head
648540858 3 years ago
parent
commit
b1e5a86916
  1. 12
      src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/MobilePosition/MobilePositionController.java
  2. 24
      src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java
  3. 18
      src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/platform/PlatformController.java
  4. 12
      src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java

12
src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/MobilePosition/MobilePositionController.java

@ -67,9 +67,9 @@ public class MobilePositionController {
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 @@ public class MobilePositionController {
})
@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);
}

24
src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java

@ -62,9 +62,9 @@ public class DeviceQuery {
@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 @@ public class DeviceQuery {
@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 @@ 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<DeviceChannel> deviceChannelPageResult = new PageInfo<>();

18
src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/platform/PlatformController.java

@ -73,9 +73,9 @@ public class PlatformController {
})
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 @@ public class PlatformController {
@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 @@ 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<ChannelReduce> channelReduces = null;
if (platformId != null ) {
channelReduces = storager.queryAllChannelList(page, count, query, online, channelType, platformId, choosed);

12
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<Device> 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);

Loading…
Cancel
Save