| | |
| | | import com.ruoyi.auction.mapper.AuctionGoodsMapper; |
| | | import com.ruoyi.auction.service.IAuctionBidRecordService; |
| | | import com.ruoyi.auction.service.IAuctionGoodsService; |
| | | import com.ruoyi.auction.service.IMemberAuctionCollectionService; |
| | | import com.ruoyi.common.core.constant.SecurityConstants; |
| | | import com.ruoyi.common.core.enums.AuctionOrderTypeEnum; |
| | | import com.ruoyi.common.core.enums.AuctionStartStatusEnum; |
| | |
| | | private final IAuctionBidRecordService auctionBidRecordService; |
| | | |
| | | @Resource |
| | | private MemberAuctionCollectionServiceImpl memberAuctionCollectionServiceImpl; |
| | | |
| | | @Resource |
| | | private IAuctionGoodsService auctionGoodsService; |
| | | private IMemberAuctionCollectionService memberAuctionCollectionService; |
| | | |
| | | @Resource |
| | | private AuctionGoodsMapper auctionGoodsMapper; |
| | |
| | | |
| | | @Override |
| | | public AuctionGoodsinfoVO getAuctionGoodsInfo(AuctionGoodsListDTO auctionGoodsListDTO) { |
| | | AuctionGoods byId = auctionGoodsService.getById(auctionGoodsListDTO.getGoodsSkuId()); |
| | | AuctionGoods byId = auctionGoodsMapper.selectById(auctionGoodsListDTO.getGoodsSkuId()); |
| | | GoodsSku goodsSkuOne = goodsSkuClient.getGoodsSkuOne(byId.getGoodsSkuId(), SecurityConstants.INNER).getData(); |
| | | AuctionGoodsinfoVO auctionGoodsinfoVO=new AuctionGoodsinfoVO(); |
| | | auctionGoodsinfoVO.setGoodsSkuId(byId.getGoodsSkuId()); |
| | |
| | | wrapper2.eq(MemberAuctionCollection::getMemberId,auctionGoodsListDTO.getMemberId()); |
| | | wrapper2.eq(MemberAuctionCollection::getTargetId,byId.getId()); |
| | | wrapper2.eq(MemberAuctionCollection::getDelFlag,0); |
| | | MemberAuctionCollection one = memberAuctionCollectionServiceImpl.getOne(wrapper2); |
| | | MemberAuctionCollection one = memberAuctionCollectionService.getOne(wrapper2); |
| | | if (one!=null){ |
| | | auctionGoodsinfoVO.setIsCollection(2); |
| | | }else { |