临时提交
This commit is contained in:
@@ -102,4 +102,7 @@ public class ParentPlatform {
|
||||
|
||||
@Schema(description = "是否使用自定义业务分组")
|
||||
private Boolean customCatalog;
|
||||
|
||||
@Schema(description = "是否自动推送通道变化")
|
||||
private Boolean autoPushChannel;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user