| | |
| | | if (memberAuctionSalesroomBondDTO.getBondType() == 1) { |
| | | AuctionGoods data = auctionClient.getauctionGoodsOne(memberAuctionSalesroomBondDTO, SecurityConstants.INNER).getData(); |
| | | |
| | | if (data.getEndTime().isAfter(LocalDateTime.now())){ |
| | | if (LocalDateTime.now().isAfter(data.getEndTime())){ |
| | | throw new ServiceException("商品拍卖已结束"); |
| | | } |
| | | if (data.getListingStatus().getCode()==1){ |
| | |
| | | orderAuctionBond.setMemberId(memberAuctionSalesroomBondDTO.getMemberId()); |
| | | orderAuctionBond.setBond(data.getBond()); |
| | | orderAuctionBond.setBoundStatus(BondStatusEnum.PAID); |
| | | orderAuctionBond.setBondType(AuctionOrderTypeEnum.AUCTION_ITEMS); |
| | | orderAuctionBond.setBoundStatus(BondStatusEnum.TO_PLAY); |
| | | this.save(orderAuctionBond); |
| | | payInfoVO.setOrderNO(orderAuctionBond.getOrderNo()); |
| | | payInfoVO.setType(0); |
| | |
| | | orderAuctionBond.setAuctionGoodsId(memberAuctionSalesroomBondDTO.getAuctionGoodsId()); |
| | | orderAuctionBond.setMemberId(memberAuctionSalesroomBondDTO.getMemberId()); |
| | | orderAuctionBond.setBond(data.getBond()); |
| | | orderAuctionBond.setOrderTimeSx(data.getEndTime()); |
| | | orderAuctionBond.setBoundStatus(BondStatusEnum.TO_PLAY); |
| | | orderAuctionBond.setBondType(AuctionOrderTypeEnum.AUCTION_ITEMS); |
| | | orderAuctionBond.setBondType(AuctionOrderTypeEnum.REGULAR_ITEMS); |
| | | if (memberAuctionSalesroomBondDTO.getPaymentMethod() == 1) { |
| | | orderAuctionBond.setPaymentMethod(PaymentMethodEnum.WECHAT); |
| | | } else { |