xiaoyong931011
2020-08-21 c1006ae7d472ac69e30718d2e89fa3fcafc60b28
20200821
1 files modified
13 ■■■■ changed files
src/main/java/com/xcong/excoin/modules/coin/service/impl/CoinServiceImpl.java 13 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/coin/service/impl/CoinServiceImpl.java
@@ -188,6 +188,8 @@
        BigDecimal cnyUsdt = cnyUsdtExchange.getValue();
        Map<String, Object> columnMap = new HashMap<String, Object>();
        columnMap.put("member_id", memberId);
        Map<String, Object> map = new HashMap<String, Object>();
        List<MemberWalletContractEntity> selectByMap = memberWalletContractDao.selectByMap(columnMap);
        BigDecimal totalCoin = BigDecimal.ZERO;
        
@@ -205,13 +207,10 @@
            }
        }
        
        MemberWalletContractInfoVo memberWalletContractInfoVo = new MemberWalletContractInfoVo();
        memberWalletContractInfoVo.setTotalCoin(totalCoin.setScale(4, BigDecimal.ROUND_DOWN));
        memberWalletContractInfoVo.setAvailableCoin(totalCoin.multiply(cnyUsdt).setScale(4, BigDecimal.ROUND_DOWN));
        memberWalletContractInfoVo.setSymbol("ALLCOIN");
        list.add(memberWalletContractInfoVo);
        return Result.ok(list);
        map.put("memberWalletContractInfoVo", list);
        map.put("totalCoin", totalCoin.setScale(4, BigDecimal.ROUND_DOWN));
        map.put("availableCoin", totalCoin.multiply(cnyUsdt).setScale(4, BigDecimal.ROUND_DOWN));
        return Result.ok(map);
    }
    @Override