diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java
index 1bdae76b..1ff0d29f 100755
--- a/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java
+++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java
@@ -167,8 +167,8 @@ public interface DeviceChannelMapper {
" AND (dc.channel_id LIKE concat('%',#{query},'%') OR dc.name LIKE concat('%',#{query},'%') OR dc.name LIKE concat('%',#{query},'%')) " +
" AND dc.status=true " +
" AND dc.status=false " +
- " AND dc.sub_count > 0 " +
- " AND dc.sub_count = 0 " +
+ " AND dc.sub_count > 0 " +
+ " AND dc.sub_count = 0 " +
" AND dc.id not in (select device_channel_id from wvp_platform_gb_channel where platform_id=#{platformId} ) " +
" AND pgc.platform_id = #{platformId} and pgc.catalog_id=#{catalogId} " +
" ORDER BY dc.device_id, dc.channel_id ASC" +