修复目录推送的BUG

pull/1642/head
648540858 2024-08-17 22:49:40 +08:00
parent 9247c7e805
commit 160a5d84c3
2 changed files with 9 additions and 1 deletions

View File

@ -89,7 +89,7 @@ public interface PlatformChannelMapper {
"FROM " +
"wvp_platform pp " +
"left join wvp_platform_gb_channel pgc on " +
"pp.server_gb_id = pgc.platform_id " +
"pp.id = pgc.platform_id " +
"left join wvp_device_channel dc on " +
"dc.id = pgc.device_channel_id " +
"WHERE " +

View File

@ -436,6 +436,14 @@ public class GbChannelServiceImpl implements IGbChannelService {
}
// 这个多加一个参数,为了防止将非国标的通道通过此方法清空内容,导致意外发生
commonGBChannelMapper.reset(id, channel.getGbDeviceDbId(), DateUtil.getNow());
CommonGBChannel channelNew = getOne(id);
// 发送通过更新通知
try {
// 发送通知
eventPublisher.catalogEventPublish(null, channelNew, CatalogEvent.UPDATE);
} catch (Exception e) {
log.warn("[通道移除通知] 发送失败,{}", channelNew.getGbDeviceId(), e);
}
}
@Override