From ae085ffd5e476ffc67cd05d12d6375f2f0f61cb3 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 11 Nov 2022 03:37:48 +0800
Subject: [PATCH] 20221021
---
src/main/java/cc/mrbird/febs/dapp/entity/DappAccountMoneyChangeEntity.java | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 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 63275a1..3511b52 100644
--- a/src/main/java/cc/mrbird/febs/dapp/entity/DappAccountMoneyChangeEntity.java
+++ b/src/main/java/cc/mrbird/febs/dapp/entity/DappAccountMoneyChangeEntity.java
@@ -35,11 +35,41 @@
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");
@@ -62,6 +92,8 @@
private Long memberId;
+ private Long orderId;
+
private BigDecimal preAmount;
private BigDecimal amount;
--
Gitblit v1.9.1