| | |
| | | } |
| | | |
| | | } |
| | | List<Long> list=new ArrayList<>(); |
| | | Set<Long> list=new HashSet<>(); |
| | | LambdaQueryWrapper<AuctionBidRecord> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.eq(AuctionBidRecord::getAuctionSalesroomId, ationSalesroomGoodsDTO.getAuctionSalesroomId()); |
| | | wrapper.eq(AuctionBidRecord::getDelFlag, 0); |
| | |
| | | @Override |
| | | public List<AuctionBidRecordVO> getAuctionBidRecord(AuctionSalesroomGoodsInfoDTO auctionSalesroomGoodsInfoDTO) { |
| | | LambdaQueryWrapper<AuctionBidRecord> wrapper=Wrappers.lambdaQuery(); |
| | | wrapper.eq(AuctionBidRecord::getAuctionSalesroomId,auctionSalesroomGoodsInfoDTO.getAuctionSalesroomId()); |
| | | if (auctionSalesroomGoodsInfoDTO.getAuctionSalesroomId()!=null){ |
| | | wrapper.eq(AuctionBidRecord::getAuctionSalesroomId,auctionSalesroomGoodsInfoDTO.getAuctionSalesroomId()); |
| | | } |
| | | wrapper.eq(AuctionBidRecord::getDelFlag,0); |
| | | wrapper.eq(AuctionBidRecord::getTargetId,auctionSalesroomGoodsInfoDTO.getGoodsSkuId()); |
| | | wrapper.orderByDesc(AuctionBidRecord::getLastBidAmount); |
| | |
| | | auctionBidRecordVOList.add(auctionBidRecordVO); |
| | | } |
| | | LambdaQueryWrapper<AuctionBidRecord> wrapper1=Wrappers.lambdaQuery(); |
| | | wrapper1.eq(AuctionBidRecord::getAuctionSalesroomId,auctionSalesroomGoodsInfoDTO.getAuctionSalesroomId()); |
| | | if (auctionSalesroomGoodsInfoDTO.getAuctionSalesroomId()!=null){ |
| | | wrapper.eq(AuctionBidRecord::getAuctionSalesroomId,auctionSalesroomGoodsInfoDTO.getAuctionSalesroomId()); |
| | | } |
| | | wrapper1.eq(AuctionBidRecord::getDelFlag,0); |
| | | wrapper1.eq(AuctionBidRecord::getTargetId,auctionSalesroomGoodsInfoDTO.getGoodsSkuId()); |
| | | wrapper1.eq(AuctionBidRecord::getMemberId,auctionSalesroomGoodsInfoDTO.getMemberId()); |
| | |
| | | auctionBidRecordVO.setLastBidTime(auctionBidRecord.getLastBidTime()); |
| | | Member data = emberClient.getMembeOne(auctionBidRecord.getMemberId(), |
| | | SecurityConstants.INNER).getData(); |
| | | auctionBidRecordVO.setMemberName(data.getNickname()); |
| | | auctionBidRecordVO.setMemberId(data.getId()); |
| | | auctionBidRecordVOList.add(auctionBidRecordVO); |
| | | if (data!=null){ |
| | | auctionBidRecordVO.setMemberName(data.getNickname()); |
| | | auctionBidRecordVO.setMemberId(data.getId()); |
| | | } |
| | | if (data!=null){ |
| | | Boolean b=false; |
| | | for (AuctionBidRecordVO auctionBidRecordVOs:auctionBidRecordVOList){ |
| | | if (auctionBidRecordVOs.getMemberId().equals(data.getId())){ |
| | | b=true; |
| | | break; |
| | | } |
| | | } |
| | | if (!b){ |
| | | auctionBidRecordVOList.add(auctionBidRecordVO); |
| | | } |
| | | }else{ |
| | | auctionBidRecordVOList.add(auctionBidRecordVO); |
| | | } |
| | | |
| | | } |
| | | } |
| | | |