From 5c53b4e1e7dc2bae956332a0dc446992725c80bb Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 14 Nov 2022 10:00:37 +0800
Subject: [PATCH] 20221114,内转改成不需要审核,通过mq处理

---
 src/main/java/cc/mrbird/febs/dapp/entity/DappAccountMoneyChangeEntity.java |   78 ++++++++++++++++++++++++++++++++++++++-
 1 files changed, 76 insertions(+), 2 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/dapp/entity/DappAccountMoneyChangeEntity.java b/src/main/java/cc/mrbird/febs/dapp/entity/DappAccountMoneyChangeEntity.java
index 2592af5..3511b52 100644
--- a/src/main/java/cc/mrbird/febs/dapp/entity/DappAccountMoneyChangeEntity.java
+++ b/src/main/java/cc/mrbird/febs/dapp/entity/DappAccountMoneyChangeEntity.java
@@ -3,13 +3,14 @@
 import cc.mrbird.febs.common.entity.BaseEntity;
 import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 
 import java.math.BigDecimal;
 import java.util.Date;
 
 /**
- * @author wzy
+ * @author 
  * @date 2022-03-21
  **/
 @Data
@@ -34,7 +35,64 @@
         this.setVersion(1);
     }
 
+    public DappAccountMoneyChangeEntity(Long memberId, BigDecimal preAmount, BigDecimal amount, BigDecimal afterAmount, String content, Integer type,Long orderId) {
+        this.memberId = memberId;
+        this.preAmount = preAmount;
+        this.amount = amount;
+        this.afterAmount = afterAmount;
+        this.content = content;
+        this.type = type;
+        this.orderId = orderId;
+
+        this.setCreateBy("system");
+        this.setUpdateBy("system");
+        this.setCreateTime(new Date());
+        this.setUpdateTime(new Date());
+        this.setVersion(1);
+    }
+
+    public DappAccountMoneyChangeEntity(Long memberId,BigDecimal amount, String content, Integer type) {
+        this.memberId = memberId;
+        this.amount = amount;
+        this.content = content;
+        this.type = type;
+
+        this.setCreateBy("system");
+        this.setUpdateBy("system");
+        this.setCreateTime(new Date());
+        this.setUpdateTime(new Date());
+        this.setVersion(1);
+    }
+
+    public DappAccountMoneyChangeEntity(Long memberId,BigDecimal amount, String content, Integer type,Long orderId) {
+        this.memberId = memberId;
+        this.amount = amount;
+        this.content = content;
+        this.type = type;
+        this.orderId = orderId;
+
+        this.setCreateBy("system");
+        this.setUpdateBy("system");
+        this.setCreateTime(new Date());
+        this.setUpdateTime(new Date());
+        this.setVersion(1);
+    }
+
+    public DappAccountMoneyChangeEntity(BigDecimal amount, String content, Integer type) {
+        this.amount = amount;
+        this.content = content;
+        this.type = type;
+
+        this.setCreateBy("system");
+        this.setUpdateBy("system");
+        this.setCreateTime(new Date());
+        this.setUpdateTime(new Date());
+        this.setVersion(1);
+    }
+
     private Long memberId;
+
+    private Long orderId;
 
     private BigDecimal preAmount;
 
@@ -45,10 +103,26 @@
     private String content;
 
     /**
-     * 类型 1-兑换 2-提现 3-采矿
+     * 类型 1-兑换 2-提现 3-采矿 4-内部转账 5-挂机收益 6-挂机
      */
     private Integer type;
 
     @TableField(exist = false)
     private String address;
+
+    @TableField(exist = false)
+    private String username;
+
+    @TableField(exist = false)
+    private String startTime;
+
+    @TableField(exist = false)
+    private String endTime;
+
+    /**
+     * 后台操作用户的标识
+     */
+    @TableField(exist = false)
+    private String description;
+
 }

--
Gitblit v1.9.1