xiaoyong931011
2023-02-09 e92b00089d8d57899df380135d79864dade09837
src/main/java/cc/mrbird/febs/dapp/entity/DappAccountMoneyChangeEntity.java
@@ -35,6 +35,22 @@
        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;
@@ -48,8 +64,36 @@
        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;
    private BigDecimal amount;