| | |
| | | |
| | | if (OtcEntrustOrder.ORDER_TYPE_S.equals(addDto.getType())) { |
| | | MemberWalletCoinEntity coinWallet = memberWalletCoinDao.selectWalletCoinBymIdAndCode(member.getId(), "USDT"); |
| | | BigDecimal multiply = addDto.getUnitPrice().multiply(coinWallet.getAvailableBalance()); |
| | | if(multiply.compareTo(totalAmount) < 0) { |
| | | // BigDecimal multiply = addDto.getUnitPrice().multiply(coinWallet.getAvailableBalance()); |
| | | if(coinWallet.getAvailableBalance().compareTo(addDto.getAmount()) < 0) { |
| | | throw new GlobalException("可用金额不足"); |
| | | } |
| | | |