From d5739409e551edb65e1de336a48d5a981142b20f Mon Sep 17 00:00:00 2001 From: chenparty <870300816@qq.com> Date: 星期三, 17 十一月 2021 15:30:38 +0800 Subject: [PATCH] fix bug --- src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformChannelMapper.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformChannelMapper.java b/src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformChannelMapper.java index 1781a4a..c8130c3 100644 --- a/src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformChannelMapper.java +++ b/src/main/java/com/genersoft/iot/vmp/storager/dao/PlatformChannelMapper.java @@ -26,7 +26,9 @@ @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); -- Gitblit v1.8.0