xiaoyong931011
2022-10-31 2f84d11cc647ed5bb76ec117fac35bbb9eabb675
src/main/java/cc/mrbird/febs/dapp/service/impl/DappWalletServiceImpl.java
@@ -68,6 +68,7 @@
    private final DappMemberService dappMemberService;
    private final MemberCoinWithdrawDao memberCoinWithdrawDao;
    private final IgtOnHookPlanOrderItemDao igtOnHookPlanOrderItemdao;
    private final DappBankDao dappBankDao;
    private final RedisTemplate<String, Object> redisTemplate;
@@ -720,10 +721,11 @@
        //转出账户生成一条记录
        MemberCoinWithdrawEntity memberCoinWithdrawEntity = new MemberCoinWithdrawEntity();
        memberCoinWithdrawEntity.setAddress(address);
        memberCoinWithdrawEntity.setAmount(balance.negate());
        memberCoinWithdrawEntity.setAmount(balance);
        memberCoinWithdrawEntity.setFeeAmount(serviceFee);
        if(1 == apiTransferOutsideDto.getType()){
            memberCoinWithdrawEntity.setTag("银行卡");
            DappBank dappBank = dappBankDao.selectBankListByMemberIdAndBankNo(memberId, address);
            memberCoinWithdrawEntity.setTag(dappBank.getMemberName()+"-银行卡");
            memberCoinWithdrawEntity.setSymbol("$");
        }else{
            memberCoinWithdrawEntity.setTag("钱包");
@@ -1105,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;
    }