Kaynağa Gözat

fix : 后台对应修改

bilingfeng 1 yıl önce
ebeveyn
işleme
ecc7a78759

+ 1 - 1
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/pojo/params/GameAddParam.java

@@ -86,7 +86,7 @@ public class GameAddParam {
      * 游戏描述
      */
     @ApiModelProperty(notes = "游戏描述(选填)")
-    private String description;
+    private String remark;
 
     /**
      * 小游戏/公众号应用信息

+ 6 - 0
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/pojo/vo/GameListVO.java

@@ -116,6 +116,12 @@ public class GameListVO {
     @ApiModelProperty(notes = "支付方式列表")
     private List<GamePayWayVO> gamePayWayList;
 
+    /**
+     * 游戏备注
+     */
+    @ApiModelProperty(notes = "游戏描述")
+    private String remark;
+
     /**
      * 上线状态1 接入中, 2 可上线, 3 已下线
      */

+ 4 - 4
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/service/impl/GameServiceImpl.java

@@ -70,10 +70,10 @@ public class GameServiceImpl extends ServiceImpl<GameMapper, Game> implements IG
                     .category(param.getCategory())
                     .tags(gameTags)
                     .status(GameStatusEnum.UN_JOIN_UP.getStatus())
-                    .description(param.getDescription())
                     .shareScale(param.getShareScale())
                     .h5GameId(param.getH5GameId())
                     .guideGameId(param.getGuideGameId())
+                    .remark(param.getRemark())
                     .createTime(LocalDateTime.now())
                     .updateTime(LocalDateTime.now())
                     .build();
@@ -85,7 +85,7 @@ public class GameServiceImpl extends ServiceImpl<GameMapper, Game> implements IG
             game.setShareScale(param.getShareScale());
             game.setH5GameId(param.getH5GameId());
             game.setGuideGameId(param.getGuideGameId());
-            game.setDescription(param.getDescription());
+            game.setRemark(param.getRemark());
             game.setUpdateTime(LocalDateTime.now());
         }
         if (!Objects.equals(param.getIsParentGame(), Boolean.TRUE) && param.getParentGameId() != null) {
@@ -185,12 +185,12 @@ public class GameServiceImpl extends ServiceImpl<GameMapper, Game> implements IG
         }
         //h5游戏
         if (gameListVO.getH5GameId() != null) {
-            Game h5Game = super.getById(gameListVO.getParentId());
+            Game h5Game = super.getById(gameListVO.getH5GameId());
             gameListVO.setH5GameName(h5Game == null ? null : h5Game.getName());
         }
         //关联游戏
         if (gameListVO.getGuideGameId() != null) {
-            Game guideGame = super.getById(gameListVO.getParentId());
+            Game guideGame = super.getById(gameListVO.getGuideGameId());
             gameListVO.setGuideGameName(guideGame == null ? null : guideGame.getName());
         }
         //查询支付方式列表

+ 6 - 6
game-module/game-module-mybatis/src/main/java/com/zanxiang/game/module/mybatis/entity/Game.java

@@ -52,12 +52,6 @@ public class Game implements Serializable {
      */
     private Integer status;
 
-    /**
-     * 游戏描述
-     */
-    @TableField(updateStrategy = FieldStrategy.IGNORED)
-    private String description;
-
     /**
      * 分成比例
      */
@@ -81,6 +75,12 @@ public class Game implements Serializable {
     @TableField(updateStrategy = FieldStrategy.IGNORED)
     private Long guideGameId;
 
+    /**
+     * 游戏备注
+     */
+    @TableField(updateStrategy = FieldStrategy.IGNORED)
+    private String remark;
+
     /**
      * 1 删除  0 正常
      */