游戏列表,游戏增加gameId字段
This commit is contained in:
parent
bdd2ef2f47
commit
d910c996c6
@ -44,6 +44,11 @@ public class SysGameListConfigParamCmd extends CommonCommand {
|
||||
@NotBlank
|
||||
private String gameOrigin;
|
||||
|
||||
/**
|
||||
* 游戏ID 例:1024
|
||||
*/
|
||||
private String gameId;
|
||||
|
||||
/**
|
||||
* 游戏名称.
|
||||
*/
|
||||
|
||||
@ -44,6 +44,11 @@ public class GameMatchModelConfigDTO extends DTO {
|
||||
*/
|
||||
private String gameCode;
|
||||
|
||||
/**
|
||||
* 游戏ID 例:1024
|
||||
*/
|
||||
private String gameId;
|
||||
|
||||
/**
|
||||
* 游戏封面图.
|
||||
*/
|
||||
|
||||
@ -50,6 +50,12 @@ public class SysGameListConfigDTO extends DTO {
|
||||
*/
|
||||
private String gameCode;
|
||||
|
||||
|
||||
/**
|
||||
* 游戏ID 例:1024
|
||||
*/
|
||||
private String gameId;
|
||||
|
||||
/**
|
||||
* 游戏封面图.
|
||||
*/
|
||||
|
||||
@ -43,6 +43,11 @@ public class SysGameListConfigCO implements Serializable {
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 游戏ID 例:1024
|
||||
*/
|
||||
private String gameId;
|
||||
|
||||
/**
|
||||
* 游戏编号.
|
||||
*/
|
||||
|
||||
@ -42,6 +42,9 @@ public class GameListConfig extends TimestampBaseEntity {
|
||||
@TableField("game_origin")
|
||||
private String gameOrigin;
|
||||
|
||||
@TableField("game_id")
|
||||
private String gameId;
|
||||
|
||||
/**
|
||||
* 游戏名称.
|
||||
*/
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user