648540858 3 年之前
父节点
当前提交
8a362506c6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java

+ 1 - 1
src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceChannelMapper.java

@@ -67,7 +67,7 @@ public interface DeviceChannelMapper {
             " <if test='online == false' > AND dc.status=0</if>" +
             " <if test='hasSubChannel == true' >  AND dc.subCount > 0 </if>" +
             " <if test='hasSubChannel == false' >  AND dc.subCount = 0 </if>" +
-            "GROUP BY dc.channelId " +
+            "ORDER BY dc.channelId " +
             " </script>"})
     List<DeviceChannel> queryChannels(String deviceId, String parentChannelId, String query, Boolean hasSubChannel, Boolean online);