| | |
| | | package com.yami.trading.api.controller; |
| | | |
| | | import cn.hutool.core.collection.CollectionUtil; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.yami.trading.api.dto.ChannelBlockchainDto; |
| | | import com.yami.trading.api.model.GetChannelBlockchainModel; |
| | |
| | | df2.setRoundingMode(RoundingMode.FLOOR); |
| | | // String partyId ="dcc0dd35a49c383dadabc4dc030afe70"; |
| | | String partyId = SecurityUtils.getCurrentUserId(); |
| | | CapitaltWallet usdt = null; |
| | | Wallet usdt = null; |
| | | if (StringUtils.isNotEmpty(partyId)) { |
| | | // usdt = this.walletService.saveWalletByPartyId(partyId); |
| | | usdt = capitaltWalletService.getUserIdWallet(partyId); |
| | | usdt = this.walletService.saveWalletByPartyId(partyId); |
| | | // usdt = capitaltWalletService.getUserIdWallet(partyId); |
| | | } |
| | | if (null == usdt) { |
| | | usdt = new CapitaltWallet(); |
| | | usdt = new Wallet(); |
| | | usdt.setMoney(new BigDecimal(0)); |
| | | usdt.setLockMoney(new BigDecimal(0)); |
| | | usdt.setFreezeMoney(new BigDecimal(0)); |
| | |
| | | } |
| | | List<WalletExtend> walletExtends = null; |
| | | log.info(list_symbol.toString() + "============="); |
| | | if (StringUtils.isNotEmpty(partyId)) { |
| | | if (StringUtils.isNotEmpty(partyId) && CollectionUtil.isNotEmpty(list_symbol)) { |
| | | walletExtends = this.walletService.findExtend(partyId, list_symbol); |
| | | } |
| | | if (null == walletExtends) { |