修复级联的通道查询以及设备信息查询

This commit is contained in:
648540858
2021-11-04 15:56:24 +08:00
parent 810dceea88
commit c33bf822cc
8 changed files with 22 additions and 22 deletions

View File

@@ -26,7 +26,9 @@ public interface PlatformChannelMapper {
@Insert("<script> "+
"INSERT INTO platform_gb_channel (channelId, deviceId, platformId, deviceAndChannelId) VALUES" +
"<foreach collection='channelReducesToAdd' item='item' separator=','> ('${item.channelId}','${item.deviceId}', '${platformId}', '${item.deviceId}_${item.channelId}' )</foreach>" +
"<foreach collection='channelReducesToAdd' item='item' separator=','>" +
" ('${item.channelId}','${item.deviceId}', '${platformId}', '${item.deviceId}_${item.channelId}' )" +
"</foreach>" +
"</script>")
int addChannels(String platformId, List<ChannelReduce> channelReducesToAdd);