修复国标级联点播通道编号重复异常

This commit is contained in:
648540858
2024-08-29 18:04:16 +08:00
parent 45f5f4e02d
commit de0ad2b32e
2 changed files with 9 additions and 3 deletions

View File

@@ -627,7 +627,12 @@ public class GbChannelServiceImpl implements IGbChannelService {
@Override
public CommonGBChannel queryOneWithPlatform(Integer platformId, String channelDeviceId) {
return platformChannelMapper.queryOneWithPlatform(platformId, channelDeviceId);
List<CommonGBChannel> channelList = platformChannelMapper.queryOneWithPlatform(platformId, channelDeviceId);
if (!channelList.isEmpty()) {
return channelList.get(channelList.size() - 1);
}else {
return null;
}
}
@Override