| | |
| | | transactionPageOfWalletCoinVo.setCnyUsdt(cnyUsdt.setScale(4, BigDecimal.ROUND_DOWN));
|
| | | //换算成人民币的币种价格
|
| | | transactionPageOfWalletCoinVo.setCurrentPriceCny(cnyUsdt.multiply(closePrice).setScale(4, BigDecimal.ROUND_DOWN));
|
| | | |
| | | transactionPageOfWalletCoinVo.setSymbol(symbol);
|
| | | transactionPageOfWalletCoinVo.setType(type);
|
| | | return Result.ok(transactionPageOfWalletCoinVo);
|
| | | }
|
| | |
|
| | |
| | | List<OrderCoinsDealEntity> selectAllWalletCoinOrder = orderCoinDealDao.selectAllWalletCoinOrder(memberId);
|
| | | if(CollUtil.isNotEmpty(selectAllWalletCoinOrder)) {
|
| | | for(OrderCoinsDealEntity orderCoinsDealEntity: selectAllWalletCoinOrder) {
|
| | | OrderWalletCoinDealVo entityToVo = OrderWalletCoinDealMapper.INSTANCE.entityToVo(orderCoinsDealEntity);
|
| | | OrderWalletCoinDealVo entityToVo = OrderWalletCoinDealMapper.INSTANCE.entityToVoOrder(orderCoinsDealEntity);
|
| | | arrayList.add(entityToVo);
|
| | | }
|
| | | }
|
| | |
| | | //获取用户ID
|
| | | Long memberId = LoginUserUtils.getAppLoginUser().getId();
|
| | | OrderCoinsDealEntity selectWalletCoinOrder = orderCoinDealDao.selectWalletCoinOrder(orderId,memberId);
|
| | | OrderWalletCoinDealVo entityToVo = OrderWalletCoinDealMapper.INSTANCE.entityToVo(selectWalletCoinOrder);
|
| | | OrderWalletCoinDealVo entityToVo = OrderWalletCoinDealMapper.INSTANCE.entityToVoOrder(selectWalletCoinOrder);
|
| | | return Result.ok(entityToVo);
|
| | | }
|
| | |
|
| | |
| | | }else {
|
| | | Map<String, Object> columnMap = new HashMap<>();
|
| | | columnMap.put("symbol", symbol);
|
| | | columnMap.put("member_id", memberId);
|
| | | memberSelectSymbolsDao.deleteByMap(columnMap);;
|
| | | return Result.ok(MessageSourceUtils.getString("order_service_0016"));
|
| | | }
|