游戏列表增加roomId字段处理隐藏游戏分类
This commit is contained in:
parent
7e6b8fa5bf
commit
56b0d8bdc5
@ -107,7 +107,7 @@ public class GameListConfigQryExe {
|
|||||||
|
|
||||||
String data = gameListCacheService.listCache(cmd.requireReqSysOrigin(),String.valueOf(cmd.getCategory()),
|
String data = gameListCacheService.listCache(cmd.requireReqSysOrigin(),String.valueOf(cmd.getCategory()),
|
||||||
sysOrigin -> JacksonUtils.toJson(sysConfigAppConvertor.toListGameListConfigCO(
|
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)) {
|
if (StringUtils.isBlank(data)) {
|
||||||
return Lists.newArrayList();
|
return Lists.newArrayList();
|
||||||
|
|||||||
@ -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获得游戏封面图.
|
* 根据游戏code获得游戏封面图.
|
||||||
|
|||||||
@ -28,10 +28,11 @@ public class GameListConfigServiceImpl extends
|
|||||||
BaseServiceImpl<GameListConfigDAO, GameListConfig> implements GameListConfigService {
|
BaseServiceImpl<GameListConfigDAO, GameListConfig> implements GameListConfigService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<GameListConfig> listShowcaseConfig(String sysOrigin, String category) {
|
public List<GameListConfig> listShowcaseConfig(String sysOrigin, String category, String roomId) {
|
||||||
return query()
|
return query()
|
||||||
.eq(GameListConfig::getSysOrigin, sysOrigin)
|
.eq(GameListConfig::getSysOrigin, sysOrigin)
|
||||||
.eq(StringUtils.isNotBlank(category), GameListConfig::getCategory, category)
|
.eq(StringUtils.isNotBlank(category), GameListConfig::getCategory, category)
|
||||||
|
.ne(StringUtils.isBlank(roomId), GameListConfig::getCategory, "HIDDEN")
|
||||||
.eq(GameListConfig::getShowcase, Boolean.TRUE)
|
.eq(GameListConfig::getShowcase, Boolean.TRUE)
|
||||||
.orderByDesc(TimestampBaseEntity::getCreateTime, GameListConfig::getSort)
|
.orderByDesc(TimestampBaseEntity::getCreateTime, GameListConfig::getSort)
|
||||||
.list();
|
.list();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user