临时提交

This commit is contained in:
648540858
2024-08-08 22:43:37 +08:00
parent 9aad6ac719
commit 8ab88c0f02
10 changed files with 60 additions and 47 deletions

View File

@@ -102,4 +102,7 @@ public class ParentPlatform {
@Schema(description = "是否使用自定义业务分组")
private Boolean customCatalog;
@Schema(description = "是否自动推送通道变化")
private Boolean autoPushChannel;
}

View File

@@ -146,9 +146,9 @@ public interface CommonGBChannelMapper {
int update(CommonGBChannel commonGBChannel);
@Update(value = {" <script>" +
"UPDATE wvp_device_channel " +
"SET gb_status = #{gbStatus}" +
"WHERE id = #{gbId}"+
" UPDATE wvp_device_channel " +
" SET gb_status = #{status}" +
" WHERE id = #{gbId}"+
" </script>"})
int updateStatusById(@Param("gbId") int gbId, @Param("status") int status);

View File

@@ -108,7 +108,7 @@ public class ChannelProvider {
sqlBuild.append(getBaseSelectSql());
sqlBuild.append("where gb_status=#{status} and id in ( ");
List<CommonGBChannel> commonGBChannelList = (List<CommonGBChannel>)params.get("ids");
List<CommonGBChannel> commonGBChannelList = (List<CommonGBChannel>)params.get("commonGBChannelList");
boolean first = true;
for (CommonGBChannel channel : commonGBChannelList) {
if (!first) {

View File

@@ -315,7 +315,7 @@ public class PlatformServiceImpl implements IPlatformService {
},
(parentPlatform.getKeepTimeout())*1000);
}
if (parentPlatform.isAutoPushChannel()) {
if (parentPlatform.getAutoPushChannel() != null && parentPlatform.getAutoPushChannel()) {
if (subscribeHolder.getCatalogSubscribe(parentPlatform.getServerGBId()) == null) {
log.info("[国标级联]{}, 添加自动通道推送模拟订阅信息", parentPlatform.getServerGBId());
addSimulatedSubscribeInfo(parentPlatform);

View File

@@ -197,7 +197,8 @@ public class SubscribeRequestProcessor extends SIPRequestProcessorParent impleme
} catch (SipException | InvalidArgumentException | ParseException e) {
log.error("未处理的异常 ", e);
}
if (subscribeHolder.getCatalogSubscribe(platformId) == null && platform.isAutoPushChannel()) {
if (subscribeHolder.getCatalogSubscribe(platformId) == null
&& platform.getAutoPushChannel() != null && platform.getAutoPushChannel()) {
platformService.addSimulatedSubscribeInfo(platform);
}
}