Browse Source

通道查询排序输出,避免列表杂乱无章

pull/38/head
Lawrence 4 years ago
parent
commit
fede5969f9
  1. 2
      src/main/java/com/genersoft/iot/vmp/storager/dao/PatformChannelMapper.java

2
src/main/java/com/genersoft/iot/vmp/storager/dao/PatformChannelMapper.java

@ -18,7 +18,7 @@ public interface PatformChannelMapper {
*/ */
@Select("<script> "+ @Select("<script> "+
"SELECT deviceAndChannelId FROM platform_gb_channel WHERE platformId='${platformId}' AND deviceAndChannelId in" + "SELECT deviceAndChannelId FROM platform_gb_channel WHERE platformId='${platformId}' AND deviceAndChannelId in" +
"<foreach collection='deviceAndChannelIds' open='(' item='id_' separator=',' close=')'> '${id_}'</foreach>" + "<foreach collection='deviceAndChannelIds' open='(' item='id_' separator=',' close=')'> '${id_}'</foreach> ORDER BY deviceAndChannelId ASC" +
"</script>") "</script>")
List<String> findChannelRelatedPlatform(String platformId, List<String> deviceAndChannelIds); List<String> findChannelRelatedPlatform(String platformId, List<String> deviceAndChannelIds);

Loading…
Cancel
Save