| | |
| | | wrapper2.orderByAsc(AuctionSalesroomGoods::getSortNum); |
| | | wrapper2.last("limit 1"); |
| | | AuctionSalesroomGoods auctionSalesroomGoods = this.getOne(wrapper2); |
| | | |
| | | if (auctionSalesroomGoods==null){ |
| | | throw new ServiceException("以没有待拍卖商品"); |
| | | } |
| | | |
| | | if(auctionSalesroomGoods!=null){ |
| | | auctionSalesroomGoods.setStatus(AuctionGoodsStatusEnum.IN_PROGRESS); |
| | | auctionSalesroomGoods.setStartTime(LocalDateTime.now()); |
| | |
| | | LambdaQueryWrapper<AuctionBidRecord> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.eq(AuctionBidRecord::getAuctionSalesroomId, ationSalesroomGoodsDTO.getAuctionSalesroomId()); |
| | | wrapper.eq(AuctionBidRecord::getDelFlag, 0); |
| | | wrapper.eq(AuctionBidRecord::getStatus,0); |
| | | wrapper.eq(AuctionBidRecord::getStatus,2); |
| | | List<AuctionBidRecord> auctionBidRecordList = auctionBidRecordMapper.selectList(wrapper); |
| | | for (AuctionBidRecord auctionBidRecord:auctionBidRecordList){ |
| | | list.add(auctionBidRecord.getMemberId()); |
| | |
| | | orderAuctionBondDTO.setUserList(list); |
| | | orderClient.getOrderAuctionBond(orderAuctionBondDTO, |
| | | SecurityConstants.INNER); |
| | | }else{ |
| | | OrderAuctionBondDTO orderAuctionBondDTO=new OrderAuctionBondDTO(); |
| | | orderAuctionBondDTO.setAuctionSalesroomId(auctionSalesroom.getId()); |
| | | orderAuctionBondDTO.setUserList(list); |
| | | orderClient.getOrderAuctionBond(orderAuctionBondDTO, |
| | | SecurityConstants.INNER); |
| | | } |
| | | |
| | | Map<String, Object> map = new ConcurrentHashMap<>(); |