| | |
| | | package com.ruoyi.auction.controller.inner; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.ruoyi.auction.service.IAuctionGoodsService; |
| | | import com.ruoyi.common.core.domain.R; |
| | |
| | | R<List<GoodsSku>> getGoodsSkuByAuctionGoodsIdSet(@RequestBody Set<Long> auctionGoodsIdSet) { |
| | | return R.ok(auctionGoodsService.getGoodsSkuByAuctionGoodsIdSet(auctionGoodsIdSet)); |
| | | } |
| | | |
| | | /** |
| | | * 根据商品id获取拍卖商品 |
| | | */ |
| | | @InnerAuth |
| | | @GetMapping("/getAuctionBySkuId/{goodsSkuId}") |
| | | R<AuctionGoods> getAuctionBySkuId(@PathVariable("goodsSkuId") Long goodsSkuId) { |
| | | return R.ok(auctionGoodsService.getOne(new LambdaQueryWrapper<AuctionGoods>() |
| | | .eq(AuctionGoods::getGoodsSkuId, goodsSkuId))); |
| | | } |
| | | } |