From 8a4e915fe1273e181d44cd152bfcb09446944b18 Mon Sep 17 00:00:00 2001
From: Lawrence <1934378145@qq.com>
Date: 星期四, 14 一月 2021 23:51:59 +0800
Subject: [PATCH] 修改catalog请求还是响应的判断方法

---
 src/main/java/com/genersoft/iot/vmp/storager/dao/PatformChannelMapper.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/PatformChannelMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/PatformChannelMapper.java
index 00b1260..c5e9091 100644
--- a/src/main/java/com/genersoft/iot/vmp/storager/dao/PatformChannelMapper.java
+++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/PatformChannelMapper.java
@@ -30,8 +30,13 @@
 
 
     @Delete("<script> "+
-            "DELETE FROM platform_gb_channel WHERE deviceAndChannelId in" +
+            "DELETE FROM platform_gb_channel WHERE platformId='${platformId}' AND deviceAndChannelId in" +
             "<foreach collection='channelReducesToDel'  item='item'  open='(' separator=',' close=')' > '${item.deviceId}_${item.channelId}'</foreach>" +
             "</script>")
     int delChannelForGB(String platformId, List<ChannelReduce> channelReducesToDel);
+
+    @Delete("<script> "+
+            "DELETE FROM platform_gb_channel WHERE platformId='${platformId}'"  +
+            "</script>")
+    int cleanChannelForGB(String platformId);
 }

--
Gitblit v1.8.0