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