Ver código fonte

feat : sdk对接修改

bilingfeng 2 anos atrás
pai
commit
b44c6e7eea

+ 27 - 16
game-module/game-mybatis/src/main/java/com/zanxiang/mybatis/entity/GameStrategy.java → game-module/game-mybatis/src/main/java/com/zanxiang/mybatis/entity/GamePayStrategy.java

@@ -7,7 +7,8 @@ import com.baomidou.mybatisplus.annotation.TableName;
 import lombok.*;
 import lombok.*;
 
 
 import java.io.Serializable;
 import java.io.Serializable;
-import java.util.Date;
+import java.math.BigDecimal;
+import java.time.LocalDateTime;
 
 
 /**
 /**
  * 注释游戏策略
  * 注释游戏策略
@@ -20,13 +21,13 @@ import java.util.Date;
 @AllArgsConstructor
 @AllArgsConstructor
 @ToString
 @ToString
 @Builder
 @Builder
-@TableName("t_game_strategy")
-public class GameStrategy implements Serializable {
+@TableName("t_game_pay_strategy")
+public class GamePayStrategy implements Serializable {
 
 
     private static final long serialVersionUID = 1L;
     private static final long serialVersionUID = 1L;
 
 
     /**
     /**
-     * ID
+     * 主键id
      */
      */
     @TableId(value = "id", type = IdType.AUTO)
     @TableId(value = "id", type = IdType.AUTO)
     private Long id;
     private Long id;
@@ -37,7 +38,7 @@ public class GameStrategy implements Serializable {
     private String name;
     private String name;
 
 
     /**
     /**
-     * 策略类型 1:订单起量切换规则
+     * 策略类型 1: 切换规则, 2: 显示规则, 3: 订单起量切换规则
      */
      */
     private Integer type;
     private Integer type;
 
 
@@ -47,33 +48,43 @@ public class GameStrategy implements Serializable {
     private Long gameId;
     private Long gameId;
 
 
     /**
     /**
-     * 0正常 1删除
+     * 总支付额度
      */
      */
-    @TableLogic
-    private Integer isDelete;
+    private BigDecimal totalPayAmount;
 
 
     /**
     /**
-     * 状态 0正常 1不可用
+     * 月已用额度
      */
      */
-    private Integer status;
+    private BigDecimal mouthPayAmount;
+
+    /**
+     * 周已用额度
+     */
+    private BigDecimal weakerPayAmount;
 
 
     /**
     /**
-     * 配置
+     * 日已用额度
      */
      */
-    private String config;
+    private BigDecimal dayPayAmount;
 
 
     /**
     /**
-     * 渠道
+     * 状态 1 不可用 0 可用
      */
      */
-    private Long channel;
+    private Integer status;
+
+    /**
+     * 是否已删除 1 已删除 0 正常
+     */
+    @TableLogic
+    private Integer isDelete;
 
 
     /**
     /**
      * 创建时间
      * 创建时间
      */
      */
-    private Date createTime;
+    private LocalDateTime createTime;
 
 
     /**
     /**
      * 更新时间
      * 更新时间
      */
      */
-    private Date updateTime;
+    private LocalDateTime updateTime;
 }
 }

+ 2 - 2
game-module/game-mybatis/src/main/java/com/zanxiang/mybatis/mapper/GameStrategyMapper.java

@@ -1,7 +1,7 @@
 package com.zanxiang.mybatis.mapper;
 package com.zanxiang.mybatis.mapper;
 
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.zanxiang.mybatis.entity.GameStrategy;
+import com.zanxiang.mybatis.entity.GamePayStrategy;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Mapper;
 
 
 /**
 /**
@@ -11,5 +11,5 @@ import org.apache.ibatis.annotations.Mapper;
  * @date 2022-07-01 11:38
  * @date 2022-07-01 11:38
  */
  */
 @Mapper
 @Mapper
-public interface GameStrategyMapper extends BaseMapper<GameStrategy> {
+public interface GameStrategyMapper extends BaseMapper<GamePayStrategy> {
 }
 }