xiaoyong931011
2022-10-31 2f84d11cc647ed5bb76ec117fac35bbb9eabb675
20221021
2 files modified
14 ■■■■■ changed files
src/main/java/cc/mrbird/febs/dapp/entity/DappAccountMoneyChangeEntity.java 12 ●●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/dapp/service/impl/DappWalletServiceImpl.java 2 ●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/dapp/entity/DappAccountMoneyChangeEntity.java
@@ -48,6 +48,18 @@
        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 BigDecimal preAmount;
src/main/java/cc/mrbird/febs/dapp/service/impl/DappWalletServiceImpl.java
@@ -1107,7 +1107,7 @@
    public BigDecimal updatePTFC(Long memberId, BigDecimal totalProfit) {
        BigDecimal multiply = totalProfit.multiply(new BigDecimal(0.05));
        DappAccountMoneyChangeEntity dappAccountMoneyChangeEntity = new DappAccountMoneyChangeEntity(
                memberId, multiply.negate(), "系统", 9);
                multiply.negate(), "系统", 9);
        dappAccountMoneyChangeDao.insert(dappAccountMoneyChangeEntity);
        return multiply;
    }