Browse Source

fix : 游戏授权模块修改1

bilingfeng 1 year ago
parent
commit
2bdf1bda8c

+ 1 - 1
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/ManageApplication.java

@@ -21,7 +21,7 @@ public class ManageApplication {
 
 
     public static void main(String[] args) {
     public static void main(String[] args) {
         SpringApplication.run(ManageApplication.class, args);
         SpringApplication.run(ManageApplication.class, args);
-        System.out.println("赞象Manage服务启动成功 <游戏授权模块修改> ( ´・・)ノ(._.`) \n" +
+        System.out.println("赞象Manage服务启动成功 <游戏授权模块修改1> ( ´・・)ノ(._.`) \n" +
                 "___  ___  ___   _   _   ___  _____  _____ \n" +
                 "___  ___  ___   _   _   ___  _____  _____ \n" +
                 "|  \\/  | / _ \\ | \\ | | / _ \\|  __ \\|  ___|\n" +
                 "|  \\/  | / _ \\ | \\ | | / _ \\|  __ \\|  ___|\n" +
                 "| .  . |/ /_\\ \\|  \\| |/ /_\\ \\ |  \\/| |__  \n" +
                 "| .  . |/ /_\\ \\|  \\| |/ /_\\ \\ |  \\/| |__  \n" +

+ 7 - 0
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/pojo/params/GameAuthUpdateParam.java

@@ -33,4 +33,11 @@ public class GameAuthUpdateParam {
     @NotNull(message = "用户id不可为空")
     @NotNull(message = "用户id不可为空")
     @ApiModelProperty(notes = "用户id")
     @ApiModelProperty(notes = "用户id")
     private Long userId;
     private Long userId;
+
+    /**
+     * 是否包含自然量
+     */
+    @NotNull(message = "用户id不可为空")
+    @ApiModelProperty(notes = "是否包含自然量")
+    private Boolean defaultAgent;
 }
 }

+ 1 - 0
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/service/impl/GameAuthServiceImpl.java

@@ -119,6 +119,7 @@ public class GameAuthServiceImpl extends ServiceImpl<GameAuthMapper, GameAuth> i
         return super.update(new LambdaUpdateWrapper<GameAuth>()
         return super.update(new LambdaUpdateWrapper<GameAuth>()
                 .set(GameAuth::getGameId, param.getGameId())
                 .set(GameAuth::getGameId, param.getGameId())
                 .set(GameAuth::getUpdateBy, SecurityUtil.getUserId())
                 .set(GameAuth::getUpdateBy, SecurityUtil.getUserId())
+                .set(GameAuth::getDefaultAgent, param.getDefaultAgent())
                 .set(GameAuth::getUpdateTime, LocalDateTime.now())
                 .set(GameAuth::getUpdateTime, LocalDateTime.now())
                 .eq(GameAuth::getId, param.getId()));
                 .eq(GameAuth::getId, param.getId()));
     }
     }