[集群-自动切换过国标级联] 启动时自动注册上级只注册本平台的上级

This commit is contained in:
648540858
2025-01-02 16:30:02 +08:00
parent d022eb72d6
commit 91b0ba4d5e
5 changed files with 10 additions and 7 deletions

View File

@@ -77,8 +77,8 @@ public interface PlatformMapper {
" </script>")
List<Platform> queryList(@Param("query") String query);
@Select("SELECT * FROM wvp_platform WHERE enable=#{enable} ")
List<Platform> queryEnableParentPlatformList(boolean enable);
@Select("SELECT * FROM wvp_platform WHERE serverId=#{serverId} and enable=#{enable} ")
List<Platform> queryEnableParentPlatformList(@Param("serverId") String serverId, @Param("enable") boolean enable);
@Select("SELECT * FROM wvp_platform WHERE enable=true and as_message_channel=true")
List<Platform> queryEnablePlatformListWithAsMessageChannel();