| | |
| | | if (memberAuctionSalesroomBondDTO.getBondType() == 1) { |
| | | AuctionGoods data = auctionClient.getauctionGoodsOne(memberAuctionSalesroomBondDTO, SecurityConstants.INNER).getData(); |
| | | |
| | | if (LocalDateTime.now().isAfter(data.getEndTime())){ |
| | | if (data.getEndTime().isAfter(LocalDateTime.now())){ |
| | | throw new ServiceException("商品拍卖已结束"); |
| | | } |
| | | if (data.getListingStatus().getCode()==1){ |
| | |
| | | } |
| | | } else { |
| | | AuctionSalesroom data = auctionClient.getauctionSalesroomOne(memberAuctionSalesroomBondDTO, SecurityConstants.INNER).getData(); |
| | | |
| | | if (data.getBond().intValue() == 0) { |
| | | if (data.getBond()==null||data.getBond().intValue() == 0) { |
| | | OrderAuctionBond orderAuctionBond = new OrderAuctionBond(); |
| | | orderAuctionBond.setOrderNo(OrderUtil.getOrderNoForPrefix("BO")); |
| | | orderAuctionBond.setAuctionSalesroomId(memberAuctionSalesroomBondDTO.getAuctionSalesroomId()); |