package cc.mrbird.febs.dapp.entity;
|
|
import cc.mrbird.febs.common.entity.BaseEntity;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
/**
|
* @author
|
* @date 2022-03-21
|
**/
|
@Data
|
@TableName("dapp_account_money_change")
|
public class DappAccountMoneyChangeEntity extends BaseEntity {
|
|
public DappAccountMoneyChangeEntity() {
|
}
|
|
public DappAccountMoneyChangeEntity(Long memberId, BigDecimal preAmount, BigDecimal amount, BigDecimal afterAmount, String content, Integer type) {
|
this.memberId = memberId;
|
this.preAmount = preAmount;
|
this.amount = amount;
|
this.afterAmount = afterAmount;
|
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;
|
|
private BigDecimal amount;
|
|
private BigDecimal afterAmount;
|
|
private String content;
|
|
/**
|
* 类型 1-兑换 2-提现 3-采矿
|
*/
|
private Integer type;
|
|
@TableField(exist = false)
|
private String address;
|
}
|