| | |
| | | public R<T> getOrderAuctionBond(OrderAuctionBondDTO orderAuctionBondDTO) { |
| | | |
| | | LambdaQueryWrapper<OrderAuctionBond> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.in(OrderAuctionBond::getMemberId, orderAuctionBondDTO.getUserList()); |
| | | if (orderAuctionBondDTO.getUserList().size()>0){ |
| | | wrapper.notIn(OrderAuctionBond::getMemberId, orderAuctionBondDTO.getUserList()); |
| | | } |
| | | wrapper.eq(OrderAuctionBond::getDelFlag, 0); |
| | | wrapper.eq(OrderAuctionBond::getAuctionSalesroomId, orderAuctionBondDTO.getAuctionSalesroomId()); |
| | | List<OrderAuctionBond> orderAuctionBondList = this.list(wrapper); |
| | | |
| | | for (OrderAuctionBond orderAuctionBond : orderAuctionBondList) { |
| | | LambdaQueryWrapper<Paylog> wrapper1 = Wrappers.lambdaQuery(); |
| | | wrapper1.eq(Paylog::getOutTradeNo, orderAuctionBond.getOrderNo()); |
| | |
| | | if (memberAuctionSalesroomBondDTO.getBondType() == 1) { |
| | | AuctionGoods data = auctionClient.getauctionGoodsOne(memberAuctionSalesroomBondDTO, SecurityConstants.INNER).getData(); |
| | | |
| | | if (data.getEndTime().isAfter(LocalDateTime.now())){ |
| | | throw new ServiceException("商品拍卖已结束"); |
| | | } |
| | | if (data.getListingStatus().getCode()==1){ |
| | | throw new ServiceException("商品拍卖下线"); |
| | | } |