| | |
| | | String total = redisUtils.getString("bzz_coin_total"); |
| | | |
| | | MemberEntity loginUser = LoginUserUtils.getAppLoginUser(); |
| | | BigDecimal price = new BigDecimal(66); |
| | | BigDecimal price = new BigDecimal(redisUtils.getString("bzz_order_new_price")); |
| | | BigDecimal amount = BigDecimal.valueOf(gbzAddDto.getCount()).multiply(price); |
| | | |
| | | MemberWalletCoinEntity wallet = memberWalletCoinDao.selectWalletCoinBymIdAndCode(loginUser.getId(), CoinTypeEnum.USDT.name()); |
| | |
| | | String status = redisUtils.getString("bzz_order_status"); |
| | | priceVo.setStatus(StrUtil.isNotBlank(status) ? Integer.parseInt(status) : 2); |
| | | |
| | | |
| | | String remain = redisUtils.getString("bzz_coin_total"); |
| | | priceVo.setRemainCnt(Integer.parseInt(remain)); |
| | | |
| | | BigDecimal totalAmount = gbzOrderDao.selectOrderTotalAmount(LoginUserUtils.getAppLoginUser().getId()); |
| | | priceVo.setTotalAmount(totalAmount); |
| | | return Result.ok(priceVo); |