From 2f84d11cc647ed5bb76ec117fac35bbb9eabb675 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 31 Oct 2022 16:48:42 +0800
Subject: [PATCH] 20221021

---
 src/main/java/cc/mrbird/febs/dapp/entity/DappAccountMoneyChangeEntity.java |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 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 b407841..63275a1 100644
--- a/src/main/java/cc/mrbird/febs/dapp/entity/DappAccountMoneyChangeEntity.java
+++ b/src/main/java/cc/mrbird/febs/dapp/entity/DappAccountMoneyChangeEntity.java
@@ -35,6 +35,31 @@
         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(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 BigDecimal preAmount;
@@ -54,9 +79,18 @@
     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