xiaoyong931011
2020-05-28 0290652dcced4d31540555abd7adf6e30cdbe29e
src/main/java/com/xcong/excoin/modules/coin/service/impl/CoinServiceImpl.java
@@ -13,7 +13,6 @@
import com.xcong.excoin.common.enumerates.MemberWalletCoinEnum;
import com.xcong.excoin.common.response.Result;
import com.xcong.excoin.modules.coin.dao.MemberAccountMoneyChangeDao;
import com.xcong.excoin.modules.coin.dao.platform.CnyUsdtExchangeDao;
import com.xcong.excoin.modules.coin.entity.CnyUsdtExchange;
import com.xcong.excoin.modules.coin.entity.MemberAccountMoneyChange;
import com.xcong.excoin.modules.coin.parameter.vo.MemberAccountMoneyChangeInfoVo;
@@ -28,6 +27,7 @@
import com.xcong.excoin.modules.member.entity.MemberWalletAgentEntity;
import com.xcong.excoin.modules.member.entity.MemberWalletCoinEntity;
import com.xcong.excoin.modules.member.entity.MemberWalletContractEntity;
import com.xcong.excoin.modules.platform.dao.CnyUsdtExchangeDao;
import com.xcong.excoin.utils.MessageSourceUtils;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.ObjectUtil;
@@ -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);
               }
@@ -349,6 +349,7 @@
            memberAccountMoneyChangeInfoVo.setStatus(memberAccountMoneyChange.getStatus());
            memberAccountMoneyChangeInfoVo.setSymbol(memberAccountMoneyChange.getSymbol());
            memberAccountMoneyChangeInfoVo.setType(memberAccountMoneyChange.getType());
            memberAccountMoneyChangeInfoVo.setUpdateTime(memberAccountMoneyChange.getUpdateTime());
            arrayList.add(memberAccountMoneyChangeInfoVo);
         }
      }
@@ -371,6 +372,7 @@
            memberAccountMoneyChangeInfoVo.setStatus(memberAccountMoneyChange.getStatus());
            memberAccountMoneyChangeInfoVo.setSymbol(memberAccountMoneyChange.getSymbol());
            memberAccountMoneyChangeInfoVo.setType(memberAccountMoneyChange.getType());
            memberAccountMoneyChangeInfoVo.setUpdateTime(memberAccountMoneyChange.getUpdateTime());
            arrayList.add(memberAccountMoneyChangeInfoVo);
         }
      }
@@ -395,6 +397,7 @@
            memberAccountMoneyChangeInfoVo.setStatus(memberAccountMoneyChange.getStatus());
            memberAccountMoneyChangeInfoVo.setSymbol(memberAccountMoneyChange.getSymbol());
            memberAccountMoneyChangeInfoVo.setType(memberAccountMoneyChange.getType());
            memberAccountMoneyChangeInfoVo.setUpdateTime(memberAccountMoneyChange.getUpdateTime());
            arrayList.add(memberAccountMoneyChangeInfoVo);
         }
      }