xiaoyong931011
2022-11-03 089b0716deb4554ff19bfda13756e69c159d1693
src/main/java/cc/mrbird/febs/dapp/entity/DappAccountMoneyChangeEntity.java
@@ -1,25 +1,55 @@
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 io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
 * @author wzy
 * @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);
    }
    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;
@@ -41,7 +71,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;
}