From d910c996c610109145db8a3bc1c31999932833ad Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Wed, 29 Oct 2025 20:06:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B8=E6=88=8F=E5=88=97=E8=A1=A8=EF=BC=8C?= =?UTF-8?q?=E6=B8=B8=E6=88=8F=E5=A2=9E=E5=8A=A0gameId=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inner/model/cmd/sys/SysGameListConfigParamCmd.java | 5 +++++ .../other/inner/model/dto/sys/GameMatchModelConfigDTO.java | 5 +++++ .../other/inner/model/dto/sys/SysGameListConfigDTO.java | 6 ++++++ .../app/dto/clienobject/sys/SysGameListConfigCO.java | 5 +++++ .../other/infra/database/rds/entity/sys/GameListConfig.java | 3 +++ .../rds/service/sys/impl/GameListConfigServiceImpl.java | 2 +- 6 files changed, 25 insertions(+), 1 deletion(-) diff --git a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/cmd/sys/SysGameListConfigParamCmd.java b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/cmd/sys/SysGameListConfigParamCmd.java index 782a9389..ad69bf05 100644 --- a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/cmd/sys/SysGameListConfigParamCmd.java +++ b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/cmd/sys/SysGameListConfigParamCmd.java @@ -44,6 +44,11 @@ public class SysGameListConfigParamCmd extends CommonCommand { @NotBlank private String gameOrigin; + /** + * 游戏ID 例:1024 + */ + private String gameId; + /** * 游戏名称. */ diff --git a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/sys/GameMatchModelConfigDTO.java b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/sys/GameMatchModelConfigDTO.java index 465bd7cd..14bf16d3 100644 --- a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/sys/GameMatchModelConfigDTO.java +++ b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/sys/GameMatchModelConfigDTO.java @@ -44,6 +44,11 @@ public class GameMatchModelConfigDTO extends DTO { */ private String gameCode; + /** + * 游戏ID 例:1024 + */ + private String gameId; + /** * 游戏封面图. */ diff --git a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/sys/SysGameListConfigDTO.java b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/sys/SysGameListConfigDTO.java index 68e13e5d..1706d0a3 100644 --- a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/sys/SysGameListConfigDTO.java +++ b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/sys/SysGameListConfigDTO.java @@ -50,6 +50,12 @@ public class SysGameListConfigDTO extends DTO { */ private String gameCode; + + /** + * 游戏ID 例:1024 + */ + private String gameId; + /** * 游戏封面图. */ diff --git a/rc-service/rc-service-console/console-client/src/main/java/com/red/circle/console/app/dto/clienobject/sys/SysGameListConfigCO.java b/rc-service/rc-service-console/console-client/src/main/java/com/red/circle/console/app/dto/clienobject/sys/SysGameListConfigCO.java index 329fb54e..8dc7d76c 100644 --- a/rc-service/rc-service-console/console-client/src/main/java/com/red/circle/console/app/dto/clienobject/sys/SysGameListConfigCO.java +++ b/rc-service/rc-service-console/console-client/src/main/java/com/red/circle/console/app/dto/clienobject/sys/SysGameListConfigCO.java @@ -43,6 +43,11 @@ public class SysGameListConfigCO implements Serializable { */ private String name; + /** + * 游戏ID 例:1024 + */ + private String gameId; + /** * 游戏编号. */ diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/entity/sys/GameListConfig.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/entity/sys/GameListConfig.java index ab7ece88..805584ec 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/entity/sys/GameListConfig.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/entity/sys/GameListConfig.java @@ -42,6 +42,9 @@ public class GameListConfig extends TimestampBaseEntity { @TableField("game_origin") private String gameOrigin; + @TableField("game_id") + private String gameId; + /** * 游戏名称. */ diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/sys/impl/GameListConfigServiceImpl.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/sys/impl/GameListConfigServiceImpl.java index 0aa7d10b..4338200b 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/sys/impl/GameListConfigServiceImpl.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/sys/impl/GameListConfigServiceImpl.java @@ -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();