临时提交
parent
f89933fb58
commit
a6b436af29
|
@ -231,7 +231,7 @@ public class DeviceChannel extends CommonGBChannel {
|
||||||
// 此处对于不在wvp缓存中的行政区划,默认直接存储.保证即使出现wvp的行政区划缓存过老,也可以通过用户自主创建的方式正常使用系统
|
// 此处对于不在wvp缓存中的行政区划,默认直接存储.保证即使出现wvp的行政区划缓存过老,也可以通过用户自主创建的方式正常使用系统
|
||||||
}
|
}
|
||||||
GbCode gbCode = GbCode.decode(deviceChannel.getDeviceId());
|
GbCode gbCode = GbCode.decode(deviceChannel.getDeviceId());
|
||||||
if ("138".equals(gbCode.getTypeCode())) {
|
if (gbCode != null && "138".equals(gbCode.getTypeCode())) {
|
||||||
deviceChannel.setHasAudio(true);
|
deviceChannel.setHasAudio(true);
|
||||||
}
|
}
|
||||||
return deviceChannel;
|
return deviceChannel;
|
||||||
|
|
|
@ -334,7 +334,9 @@ public class PlatformChannelServiceImpl implements IPlatformChannelService {
|
||||||
@Transactional
|
@Transactional
|
||||||
public int removeChannels(Integer platformId, List<Integer> channelIds) {
|
public int removeChannels(Integer platformId, List<Integer> channelIds) {
|
||||||
List<CommonGBChannel> channelList = platformChannelMapper.queryShare(platformId, channelIds);
|
List<CommonGBChannel> channelList = platformChannelMapper.queryShare(platformId, channelIds);
|
||||||
Assert.notEmpty(channelList, "所选通道未共享");
|
if (channelList.isEmpty()) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return removeChannelList(platformId, channelList);
|
return removeChannelList(platformId, channelList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue