xiaoyong931011
2020-05-25 5f1c26bb2072793cc4391525f608d22342ac8e20
20200525
1 files modified
6 ■■■■ changed files
src/main/java/com/xcong/excoin/modules/coin/service/impl/CoinServiceImpl.java 6 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/coin/service/impl/CoinServiceImpl.java
@@ -66,10 +66,10 @@
                if(CollUtil.isNotEmpty(memberWalletCoinlist)) {
                    for(MemberWalletCoinEntity memberWalletCoinEntity : memberWalletCoinlist) {
                        MemberWalletCoinInfoVo memberWalletCoinInfoVo = new MemberWalletCoinInfoVo();
                        memberWalletCoinInfoVo.setAvailableBalance(memberWalletCoinEntity.getAvailableBalance());
                        memberWalletCoinInfoVo.setFrozenBalance(memberWalletCoinEntity.getFrozenBalance());
                        memberWalletCoinInfoVo.setAvailableBalance(memberWalletCoinEntity.getAvailableBalance().setScale(4, BigDecimal.ROUND_DOWN));
                        memberWalletCoinInfoVo.setFrozenBalance(memberWalletCoinEntity.getFrozenBalance().setScale(4, BigDecimal.ROUND_DOWN));
                        memberWalletCoinInfoVo.setMemberId(memberWalletCoinEntity.getMemberId());
                        memberWalletCoinInfoVo.setTotalBalance(memberWalletCoinEntity.getTotalBalance());
                        memberWalletCoinInfoVo.setTotalBalance(memberWalletCoinEntity.getTotalBalance().setScale(4, BigDecimal.ROUND_DOWN));
                        memberWalletCoinInfoVo.setWalletCode(memberWalletCoinEntity.getWalletCode());
                        memberWalletCoinInfoVolist.add(memberWalletCoinInfoVo);
                    }