| | |
| | | throw new GlobalException("可用金额不足"); |
| | | } |
| | | |
| | | memberWalletCoinDao.updateFrozenBalance(member.getId(), coinWallet.getId(), totalAmount); |
| | | memberWalletCoinDao.updateFrozenBalance(member.getId(), coinWallet.getId(), addDto.getAmount()); |
| | | } |
| | | |
| | | // OtcMarketBussiness mb = otcMarketBussinessDao.selectMarketBussinessByMemberId(member.getId()); |
| | | OtcMarketBussiness mb = otcMarketBussinessDao.selectMarketBussinessByMemberId(member.getId()); |
| | | if (mb == null) { |
| | | OtcMarketBussiness otcMb = new OtcMarketBussiness(); |
| | | otcMb.setMemberId(member.getId()); |
| | | otcMb.setAvgCoinTime(0); |
| | | otcMb.setAvgPayTime(0); |
| | | otcMb.setTotalOrderCnt(0); |
| | | otcMb.setBuyCnt(0); |
| | | otcMb.setFinishRatio(BigDecimal.ZERO); |
| | | otcMb.setStatus(OtcMarketBussiness.CHECK_PASS); |
| | | otcMarketBussinessDao.insert(otcMb); |
| | | } |
| | | |
| | | if (member.getIsTrader() == 2) { |
| | | otcEntrustOrder.setIsMb(OtcEntrustOrder.IS_MB_N); |
| | | } else { |