游戏列表,游戏增加gameId字段

This commit is contained in:
tianfeng 2025-10-29 20:06:47 +08:00
parent bdd2ef2f47
commit d910c996c6
6 changed files with 25 additions and 1 deletions

View File

@ -44,6 +44,11 @@ public class SysGameListConfigParamCmd extends CommonCommand {
@NotBlank @NotBlank
private String gameOrigin; private String gameOrigin;
/**
* 游戏ID 1024
*/
private String gameId;
/** /**
* 游戏名称. * 游戏名称.
*/ */

View File

@ -44,6 +44,11 @@ public class GameMatchModelConfigDTO extends DTO {
*/ */
private String gameCode; private String gameCode;
/**
* 游戏ID 1024
*/
private String gameId;
/** /**
* 游戏封面图. * 游戏封面图.
*/ */

View File

@ -50,6 +50,12 @@ public class SysGameListConfigDTO extends DTO {
*/ */
private String gameCode; private String gameCode;
/**
* 游戏ID 1024
*/
private String gameId;
/** /**
* 游戏封面图. * 游戏封面图.
*/ */

View File

@ -43,6 +43,11 @@ public class SysGameListConfigCO implements Serializable {
*/ */
private String name; private String name;
/**
* 游戏ID 1024
*/
private String gameId;
/** /**
* 游戏编号. * 游戏编号.
*/ */

View File

@ -42,6 +42,9 @@ public class GameListConfig extends TimestampBaseEntity {
@TableField("game_origin") @TableField("game_origin")
private String gameOrigin; private String gameOrigin;
@TableField("game_id")
private String gameId;
/** /**
* 游戏名称. * 游戏名称.
*/ */

View File

@ -121,7 +121,7 @@ public class GameListConfigServiceImpl extends
@Override @Override
public GameListConfig getByGameId(String gameId, String sysOrigin) { public GameListConfig getByGameId(String gameId, String sysOrigin) {
return query() return query()
.likeLeft(GameListConfig::getName, "_" + gameId) // 匹配 %_1345 .eq(GameListConfig::getGameId, gameId)
.eq(GameListConfig::getSysOrigin, sysOrigin) .eq(GameListConfig::getSysOrigin, sysOrigin)
.last(PageConstant.LIMIT_ONE) .last(PageConstant.LIMIT_ONE)
.getOne(); .getOne();