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 421cdad2..bdc45bf2 100644
--- a/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java
+++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java
@@ -459,8 +459,8 @@ public interface DeviceChannelMapper {
"select * " +
"from wvp_device_channel " +
"where device_id=#{deviceId}" +
- " and parent_id = #{parentId} " +
- " and parent_id is null " +
+ " and parent_id = #{parentId} " +
+ " and parent_id is null or parent_id = #{deviceId}" +
" and parental = 1 " +
" "})
List getSubChannelsByDeviceId(String deviceId, String parentId, boolean onlyCatalog);