Commit fede5969f9322191b50db3a1c81e0c1707310c0f
1 parent
f34eb9c9
通道查询排序输出,避免列表杂乱无章
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/storager/dao/PatformChannelMapper.java
| @@ -18,7 +18,7 @@ public interface PatformChannelMapper { | @@ -18,7 +18,7 @@ public interface PatformChannelMapper { | ||
| 18 | */ | 18 | */ |
| 19 | @Select("<script> "+ | 19 | @Select("<script> "+ |
| 20 | "SELECT deviceAndChannelId FROM platform_gb_channel WHERE platformId='${platformId}' AND deviceAndChannelId in" + | 20 | "SELECT deviceAndChannelId FROM platform_gb_channel WHERE platformId='${platformId}' AND deviceAndChannelId in" + |
| 21 | - "<foreach collection='deviceAndChannelIds' open='(' item='id_' separator=',' close=')'> '${id_}'</foreach>" + | 21 | + "<foreach collection='deviceAndChannelIds' open='(' item='id_' separator=',' close=')'> '${id_}'</foreach> ORDER BY deviceAndChannelId ASC" + |
| 22 | "</script>") | 22 | "</script>") |
| 23 | List<String> findChannelRelatedPlatform(String platformId, List<String> deviceAndChannelIds); | 23 | List<String> findChannelRelatedPlatform(String platformId, List<String> deviceAndChannelIds); |
| 24 | 24 |