From b1e5a869167112869b9fd85c0830686edb306bf5 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期二, 02 十一月 2021 16:56:24 +0800
Subject: [PATCH] 去除查询类api调用的日志

---
 src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/platform/PlatformController.java             |   18 ++++----
 src/main/java/com/genersoft/iot/vmp/web/ApiDeviceController.java                                  |   12 +++---
 src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java                      |   24 ++++++------
 src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/MobilePosition/MobilePositionController.java |   12 +++---
 4 files changed, 33 insertions(+), 33 deletions(-)

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 6b4f2b7..860f6a3 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 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);
     }
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 43b0378..c750821 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 @@
 	@GetMapping("/devices/{deviceId}")
 	public ResponseEntity<Device> devices(@PathVariable String deviceId){
 		
-		if (logger.isDebugEnabled()) {
-			logger.debug("鏌ヨ瑙嗛璁惧API璋冪敤锛宒eviceId锛�" + deviceId);
-		}
+//		if (logger.isDebugEnabled()) {
+//			logger.debug("鏌ヨ瑙嗛璁惧API璋冪敤锛宒eviceId锛�" + 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("鏌ヨ鎵�鏈夎棰戣澶嘇PI璋冪敤");
-		}
+//		if (logger.isDebugEnabled()) {
+//			logger.debug("鏌ヨ鎵�鏈夎棰戣澶嘇PI璋冪敤");
+//		}
 		
 		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<>();
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 1a0a9b7..5af0837 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 PageInfo<ParentPlatform> platforms(@PathVariable int page, @PathVariable int count){
 
-        if (logger.isDebugEnabled()) {
-            logger.debug("鏌ヨ鎵�鏈変笂绾ц澶嘇PI璋冪敤");
-        }
+//        if (logger.isDebugEnabled()) {
+//            logger.debug("鏌ヨ鎵�鏈変笂绾ц澶嘇PI璋冪敤");
+//        }
         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);
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 764a654..ef83976 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 @@
                             @RequestParam(required = false)String q,
                             @RequestParam(required = false)Boolean online ){
 
-        if (logger.isDebugEnabled()) {
-            logger.debug("鏌ヨ鎵�鏈夎棰戣澶嘇PI璋冪敤");
-        }
+//        if (logger.isDebugEnabled()) {
+//            logger.debug("鏌ヨ鎵�鏈夎棰戣澶嘇PI璋冪敤");
+//        }
         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("鏌ヨ鎵�鏈夎棰戣澶嘇PI璋冪敤");
-        }
+//        if (logger.isDebugEnabled()) {
+//            logger.debug("鏌ヨ鎵�鏈夎棰戣澶嘇PI璋冪敤");
+//        }
         JSONObject result = new JSONObject();
         // 鏌ヨ璁惧鏄惁瀛樺湪
         Device device = storager.queryVideoDevice(serial);

--
Gitblit v1.8.0