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

This commit is contained in:
Lawrence 2021-01-14 23:56:01 +08:00
parent 7e238b79d4
commit f53b5ddcb6

View File

@ -18,7 +18,7 @@ public interface PatformChannelMapper {
*/
@Select("<script> "+
"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>")
List<String> findChannelRelatedPlatform(String platformId, List<String> deviceAndChannelIds);