游戏列表增加roomId字段处理隐藏游戏分类

This commit is contained in:
tianfeng 2025-12-04 20:45:31 +08:00
parent 7e6b8fa5bf
commit 56b0d8bdc5
3 changed files with 4 additions and 3 deletions

View File

@ -107,7 +107,7 @@ public class GameListConfigQryExe {
String data = gameListCacheService.listCache(cmd.requireReqSysOrigin(),String.valueOf(cmd.getCategory()),
sysOrigin -> JacksonUtils.toJson(sysConfigAppConvertor.toListGameListConfigCO(
gameListConfigService.listShowcaseConfig(cmd.requireReqSysOrigin(), cmd.getCategory()))), cmd.getReqAppIntel().getVersion());
gameListConfigService.listShowcaseConfig(cmd.requireReqSysOrigin(), cmd.getCategory(), cmd.getRoomSessionId()))), cmd.getReqAppIntel().getVersion());
if (StringUtils.isBlank(data)) {
return Lists.newArrayList();

View File

@ -20,7 +20,7 @@ public interface GameListConfigService extends BaseService<GameListConfig> {
/**
* 获取上架配置.
*/
List<GameListConfig> listShowcaseConfig(String sysOrigin, String category);
List<GameListConfig> listShowcaseConfig(String sysOrigin, String category, String roomId);
/**
* 根据游戏code获得游戏封面图.

View File

@ -28,10 +28,11 @@ public class GameListConfigServiceImpl extends
BaseServiceImpl<GameListConfigDAO, GameListConfig> implements GameListConfigService {
@Override
public List<GameListConfig> listShowcaseConfig(String sysOrigin, String category) {
public List<GameListConfig> listShowcaseConfig(String sysOrigin, String category, String roomId) {
return query()
.eq(GameListConfig::getSysOrigin, sysOrigin)
.eq(StringUtils.isNotBlank(category), GameListConfig::getCategory, category)
.ne(StringUtils.isBlank(roomId), GameListConfig::getCategory, "HIDDEN")
.eq(GameListConfig::getShowcase, Boolean.TRUE)
.orderByDesc(TimestampBaseEntity::getCreateTime, GameListConfig::getSort)
.list();