feat(game): 优化平台列表查询逻辑

- 在查询平台列表时添加了停用状态过滤条件- 仅缓存未停用的平台信息,提高数据准确性
main
shi 2025-04-23 14:29:31 +08:00
parent 75ede9c934
commit 58064fc479
1 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,9 @@ public class PlatformServiceImpl implements IPlatformService {
Object key = entry.getKey();
// 设置数据源类型
DynamicDataSourceContextHolder.setDataSourceType(key.toString());
List<Platform> list = selectList(new Platform());
Platform platform = new Platform();
platform.setStopStatus(Boolean.FALSE);
List<Platform> list = selectList(platform);
for (Platform pp : list) {
redisCache.setCacheObject(getCacheKey(pp.getPlatformCode()), pp);
}