| | |
| | | import com.xcong.excoin.modules.platform.dao.PlatformCnyUsdtExchangeDao;
|
| | | import com.xcong.excoin.modules.platform.dao.TradeSettingDao;
|
| | | import com.xcong.excoin.modules.platform.entity.PlatformTradeSettingEntity;
|
| | | import com.xcong.excoin.utils.CoinTypeConvert;
|
| | | import com.xcong.excoin.utils.MessageSourceUtils;
|
| | | import com.xcong.excoin.utils.RedisUtils;
|
| | |
|
| | | import cn.hutool.core.collection.CollUtil;
|
| | | import cn.hutool.core.util.ObjectUtil;
|
| | |
| | | OrderCoinDealDao orderCoinDealDao;
|
| | | @Resource
|
| | | MemberAccountFlowEntityDao memberAccountFlowEntityDao;
|
| | | @Resource
|
| | | RedisUtils redisUtils;
|
| | |
|
| | | @Override
|
| | | public String generateSimpleSerialno(String userId) {
|
| | |
| | | //获取USDT的币币账户信息
|
| | | MemberWalletCoinEntity walletCoinUsdt = memberWalletCoinDao.selectWalletCoinBymIdAndCode(memberId,
|
| | | MemberWalletCoinEnum.WALLETCOINCODE.getValue());
|
| | | /**
|
| | | * todo
|
| | | */
|
| | | //获取某个币种的收盘价
|
| | | //Double closePrice = symbolsService.getCloseSymbolsBySymbolsName(symbol+"/USDT");
|
| | | BigDecimal closePrice = new BigDecimal("100.0000");
|
| | | |
| | | BigDecimal closePrice = new BigDecimal(redisUtils.getString(CoinTypeConvert.convertToKey(symbol+"/USDT")));
|
| | |
|
| | | List<MemberSelectSymbolsEntity> memSymbols = memberSelectSymbolsDao.selectSymbolByMemIdAndSymbol(memberId, symbol);
|
| | |
|
| | |
| | | //获取用户ID
|
| | | Long memberId = LoginUserUtils.getAppLoginUser().getId();
|
| | |
|
| | | /**
|
| | | * todo
|
| | | */
|
| | | //查询当前价
|
| | | //BigDecimal nowPrice = new BigDecimal(redisUtil.getString(CoinTypeConConvert.convertToKey(symbol+"/USDT")));
|
| | | BigDecimal nowPrice = new BigDecimal(redisUtils.getString(CoinTypeConvert.convertToKey(symbol+"/USDT")));
|
| | |
|
| | | BigDecimal nowPrice = new BigDecimal("10.0000");
|
| | | // 获取交易管理的杠杠倍率,手续费率等信息,由平台进行设置
|
| | | symbol = symbol.toUpperCase();
|
| | | MemberWalletCoinEntity walletCoin = memberWalletCoinDao.selectWalletCoinBymIdAndCode(memberId, symbol);
|