游戏列表,游戏增加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
private String gameOrigin;
/**
* 游戏ID 1024
*/
private String gameId;
/**
* 游戏名称.
*/

View File

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

View File

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

View File

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

View File

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

View File

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