| | |
| | | " name as title,\n" + |
| | | " channelId as \"value\",\n" + |
| | | " channelId as \"key\",\n" + |
| | | " channelId,\n" + |
| | | " longitude,\n" + |
| | | " latitude\n" + |
| | | " from device_channel\n" + |
| | |
| | | "<foreach collection='channels' item='item' open='(' separator=',' close=')' > #{item.channelId}</foreach>" + |
| | | " </script>"}) |
| | | int cleanChannelsNotInList(String deviceId, List<DeviceChannel> channels); |
| | | |
| | | @Update(" update device_channel" + |
| | | " set subCount = (select *" + |
| | | " from (select count(0)" + |
| | | " from device_channel" + |
| | | " where deviceId = #{deviceId} and parentId = #{channelId}) as temp)" + |
| | | " where deviceId = #{deviceId} " + |
| | | " and channelId = #{channelId}") |
| | | int updateChannelSubCount(String deviceId, String channelId); |
| | | } |