Browse Source

feat : 支付相关表结构修改, 新增一张表

bilingfeng 2 years ago
parent
commit
53e7b20ed8

+ 35 - 8
game-module/game-mybatis/src/main/java/com/zanxiang/mybatis/entity/GameApplet.java

@@ -2,6 +2,7 @@ package com.zanxiang.mybatis.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableLogic;
 import com.baomidou.mybatisplus.annotation.TableName;
 import lombok.*;
 
@@ -37,14 +38,19 @@ public class GameApplet {
     private String appId;
 
     /**
-     * 小程序密钥
+     * 小程序原始id
      */
-    private String appSecret;
+    private String ghId;
 
     /**
-     * 小程序原始id
+     * 小程序名称
      */
-    private String ghId;
+    private String appName;
+
+    /**
+     * 小程序密钥
+     */
+    private String appSecret;
 
     /**
      * 消息推送token
@@ -54,7 +60,12 @@ public class GameApplet {
     /**
      * 消息推送加密密钥
      */
-    private String msgPushEncodingAesKey;
+    private String msgPushAesKey;
+
+    /**
+     * 公司主体信息
+     */
+    private String company;
 
     /**
      * 登录账号
@@ -66,15 +77,31 @@ public class GameApplet {
      */
     private String password;
 
+    /**
+     * 管理员
+     */
+    private String manager;
+
     /**
      * 管理员微信
      */
-    private String adminVx;
+    private String managerVx;
 
     /**
-     * 公司主体信息
+     * 备注
      */
-    private String company;
+    private String remark;
+
+    /**
+     * 1 删除  0 正常
+     */
+    @TableLogic
+    private Integer isDelete;
+
+    /**
+     * 状态, 0 正常, 1 不可用
+     */
+    private Integer status;
 
     /**
      * 创建时间

+ 15 - 42
game-module/game-mybatis/src/main/java/com/zanxiang/mybatis/entity/GamePayWay.java

@@ -6,7 +6,6 @@ import com.baomidou.mybatisplus.annotation.TableLogic;
 import com.baomidou.mybatisplus.annotation.TableName;
 import lombok.*;
 
-import java.math.BigDecimal;
 import java.time.LocalDateTime;
 
 /**
@@ -34,39 +33,19 @@ public class GamePayWay {
     private Long gameId;
 
     /**
-     * 支付方式id
+     * 支付渠道id
      */
     private Long payWayId;
 
     /**
-     * 支付code
-     */
-    private String payWayCode;
-
-    /**
-     * 支付方式自定义别名(为空时则展示支付方式+游戏名称)
-     */
-    private String payWayName;
-
-    /**
-     * 状态 1 不可用 0 可用
-     */
-    private Integer status;
-
-    /**
-     * 商户号主键id
-     */
-    private Long payMerchantId;
-
-    /**
-     * 商户号
+     * 支付方式id
      */
-    private String merchantNo;
+    private Long payDeviceId;
 
     /**
-     * 商户名称
+     * 支付名称
      */
-    private String merchantName;
+    private String payName;
 
     /**
      * 支付盒子id
@@ -74,29 +53,29 @@ public class GamePayWay {
     private Long payBoxId;
 
     /**
-     * 支付配置json (存储根据payway设置后,配置的具体商户号信息)
+     * 应用appId
      */
-    private String payConfig;
+    private String appId;
 
     /**
-     * 最大支付额度锁 0 正常 1 锁定
+     * 应用名称
      */
-    private Integer maxPayLock;
+    private String appName;
 
     /**
-     * 最大支付额度
+     * 商户号
      */
-    private BigDecimal maxPayAmount;
+    private String merchantNo;
 
     /**
-     * 当前已用支付额度
+     * 支付配置(米大师)
      */
-    private BigDecimal currentPayAmount;
+    private String payConfig;
 
     /**
-     * 备注
+     * 状态 1 不可用 0 可用
      */
-    private String remark;
+    private Integer status;
 
     /**
      * 是否已删除 1 已删除 0 正常
@@ -104,11 +83,6 @@ public class GamePayWay {
     @TableLogic
     private Integer isDelete;
 
-    /**
-     * 删除时间
-     */
-    private LocalDateTime deleteTime;
-
     /**
      * 创建时间
      */
@@ -118,5 +92,4 @@ public class GamePayWay {
      * 更新时间
      */
     private LocalDateTime updateTime;
-
 }

+ 21 - 38
game-module/game-mybatis/src/main/java/com/zanxiang/mybatis/entity/PayApplication.java

@@ -27,58 +27,36 @@ public class PayApplication implements Serializable {
 
     private static final long serialVersionUID = 1L;
 
-    @TableId(value = "id", type = IdType.AUTO)
-    private Long id;
-
-    /**
-     * 应用名称
-     */
-    private String name;
-
-    /**
-     * 类型 1 微信小程序
-     */
-    private Integer type;
-
-    /**
-     * 应用AppSecret
-     */
-    private String appSecret;
-
     /**
-     * 版本
+     * 主键
      */
-    private String version;
-
-    /**
-     * 应用描述
-     */
-    private String appDesc;
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
 
     /**
-     * 应用地址
+     * 应用appId
      */
-    private String appUrl;
+    private String appId;
 
     /**
-     * 应用头像
+     * 应用原始id
      */
-    private String appLogo;
+    private String ghId;
 
     /**
-     * 小程序码
+     * 应用名称
      */
-    private String miniCode;
+    private String appName;
 
     /**
-     * 应用appid
+     * 类型,1 : 微信商城小程序, 2: 微信公众号
      */
-    private String appId;
+    private Integer type;
 
     /**
-     * 应用原始id
+     * 应用密钥
      */
-    private String primevalId;
+    private String appSecret;
 
     /**
      * 应用主体
@@ -88,17 +66,22 @@ public class PayApplication implements Serializable {
     /**
      * 登录账号
      */
-    private String loginName;
+    private String account;
 
     /**
      * 登录密码
      */
-    private String loginPassword;
+    private String password;
 
     /**
      * 管理员
      */
-    private String managePerson;
+    private String manager;
+
+    /**
+     * 管理员微信
+     */
+    private String managerVx;
 
     /**
      * 备注

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

@@ -27,6 +27,9 @@ public class PayBox implements Serializable {
 
     private static final long serialVersionUID = 1L;
 
+    /**
+     * 主键id
+     */
     @TableId(value = "id", type = IdType.AUTO)
     private Integer id;
 
@@ -38,20 +41,15 @@ public class PayBox implements Serializable {
     /**
      * 应用id
      */
-    private Long payApplicationId;
-
-    /**
-     * 应用类型
-     */
-    private Integer payApplicationType;
+    private String appId;
 
     /**
      * 商户号(多个逗号分割)
      */
-    private String payMerchantId;
+    private String merchantIds;
 
     /**
-     * 盒子类型 1、商城百货 2、商城美妆 2、商城内容
+     * 盒子类型 1、商城百货 2、商城美妆 3、商城内容 4、公众号
      */
     private Integer type;
 

+ 60 - 0
game-module/game-mybatis/src/main/java/com/zanxiang/mybatis/entity/PayDevice.java

@@ -0,0 +1,60 @@
+package com.zanxiang.mybatis.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.time.LocalDateTime;
+
+/**
+ * @author : lingfeng
+ * @time : 2023-01-12
+ * @description : 支付方式
+ */
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@Builder
+@TableName("t_pay_device")
+public class PayDevice {
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 支付方式
+     */
+    private String payDeviceKey;
+
+    /**
+     * 名称
+     */
+    private String payDeviceName;
+
+    /**
+     * 删除状态 1 已删除 0 正常
+     */
+    private Boolean isDelete;
+
+    /**
+     * 状态 1 不可用 0正常
+     */
+    private Boolean status;
+
+    /**
+     * 创建时间
+     */
+    private LocalDateTime createTime;
+
+    /**
+     * 更新时间
+     */
+    private LocalDateTime updateTime;
+}

+ 19 - 16
game-module/game-mybatis/src/main/java/com/zanxiang/mybatis/entity/PayMerchant.java

@@ -24,6 +24,9 @@ public class PayMerchant implements Serializable {
 
     private static final long serialVersionUID = 1L;
 
+    /**
+     * 主键id
+     */
     @TableId(value = "id", type = IdType.AUTO)
     private Long id;
 
@@ -38,24 +41,29 @@ public class PayMerchant implements Serializable {
     private String merchantName;
 
     /**
-     * 支持支付方式(pc/h5/app/)
+     * 支付渠道id
+     */
+    private Long payWayId;
+
+    /**
+     * 支付渠道名称
      */
-    private String payDevice;
+    private String payWayName;
 
     /**
      * 商户号登录账号
      */
-    private String loginName;
+    private String account;
 
     /**
      * 商户号登录密码
      */
-    private String loginPassword;
+    private String password;
 
     /**
      * 管理员
      */
-    private String managePerson;
+    private String manage;
 
     /**
      * 绑定手机号
@@ -68,12 +76,7 @@ public class PayMerchant implements Serializable {
     private String email;
 
     /**
-     * 状态 1 不可用 0 正常
-     */
-    private Integer status;
-
-    /**
-     * 支付配置json (存储根据payway设置后,配置的具体商户号信息)
+     * 支付配置
      */
     private String payConfig;
 
@@ -128,15 +131,15 @@ public class PayMerchant implements Serializable {
     private String remark;
 
     /**
-     * 1 删除  0 正常
+     * 状态 1 不可用 0 正常
      */
-    @TableLogic
-    private Integer isDelete;
+    private Integer status;
 
     /**
-     * 删除时间
+     * 1 删除  0 正常
      */
-    private LocalDateTime deleteTime;
+    @TableLogic
+    private Integer isDelete;
 
     /**
      * 创建时间

+ 19 - 10
game-module/game-mybatis/src/main/java/com/zanxiang/mybatis/entity/PayWay.java

@@ -2,9 +2,12 @@ package com.zanxiang.mybatis.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableLogic;
 import com.baomidou.mybatisplus.annotation.TableName;
 import lombok.*;
 
+import java.time.LocalDateTime;
+
 /**
  * @author : lingfeng
  * @time : 2022-06-06
@@ -25,27 +28,33 @@ public class PayWay {
     private Long id;
 
     /**
-     * 支付通道
+     * 支付渠道标识
+     */
+    private String payWayKey;
+
+    /**
+     * 支付渠道名称
      */
-    private String code;
+    private String payWayName;
 
     /**
-     * 支付名称
+     * 状态 1 不可用 0 可用
      */
-    private String payName;
+    private Integer status;
 
     /**
-     * 父ID
+     * 是否已删除 1 已删除 0 正常
      */
-    private Integer parentId;
+    @TableLogic
+    private Integer isDelete;
 
     /**
-     * 支付配置(存储需要配置的信息json)
+     * 创建时间
      */
-    private String payExt;
+    private LocalDateTime createTime;
 
     /**
-     * 描述
+     * 更新时间
      */
-    private String remark;
+    private LocalDateTime updateTime;
 }

+ 12 - 0
game-module/game-mybatis/src/main/java/com/zanxiang/mybatis/mapper/PayDeviceMapper.java

@@ -0,0 +1,12 @@
+package com.zanxiang.mybatis.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.zanxiang.mybatis.entity.PayDevice;
+
+/**
+ * @author : lingfeng
+ * @time : 2023-01-12
+ * @description : ${description}
+ */
+public interface PayDeviceMapper extends BaseMapper<PayDevice> {
+}