xiaoyong931011
2022-11-04 cdc27a7a63b4ff81125ec594eb23deb22bd76e21
src/main/java/cc/mrbird/febs/dapp/entity/DappAccountMoneyChangeEntity.java
@@ -35,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;
@@ -54,9 +111,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;
}