mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-14 17:47:50 +08:00
修复批量设置子码流类型
This commit is contained in:
parent
79627201f5
commit
69a32f4519
@ -413,6 +413,10 @@ public interface DeviceChannelMapper {
|
||||
"</script>")
|
||||
void updateChannelStreamIdentification(DeviceChannel channel);
|
||||
|
||||
@Update("<script>" +
|
||||
"UPDATE wvp_device_channel SET stream_identification=#{streamIdentification}" +
|
||||
"</script>")
|
||||
void updateAllChannelStreamIdentification(@Param("streamIdentification") String streamIdentification);
|
||||
|
||||
@Update({"<script>" +
|
||||
"<foreach collection='channelList' item='item' separator=';'>" +
|
||||
|
||||
@ -338,7 +338,11 @@ public class DeviceChannelServiceImpl implements IDeviceChannelService {
|
||||
log.info("[更新通道码流类型] 设备: {}, 通道:{}, 码流: {}", channel.getDeviceId(), channel.getDeviceId(),
|
||||
channel.getStreamIdentification());
|
||||
}
|
||||
channelMapper.updateChannelStreamIdentification(channel);
|
||||
if (channel.getId() > 0) {
|
||||
channelMapper.updateChannelStreamIdentification(channel);
|
||||
}else {
|
||||
channelMapper.updateAllChannelStreamIdentification(channel.getStreamIdentification());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
Reference in New Issue
Block a user