| | |
| | | import com.ruoyi.auction.domain.pojo.AuctionVideo; |
| | | import com.ruoyi.auction.service.IAuctionSalesroomService; |
| | | import com.ruoyi.auction.service.IAuctionVideoService; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @RequestMapping("/getAuctionBidRecordList") |
| | | @ResponseBody |
| | | @ApiOperation(value = "拍卖大屏获取拍卖信息") |
| | | public List<AuctionSalesroom> getAuctionBidRecordList(@PathVariable("salesroomName") String salesroomName) { |
| | | public R<List<AuctionSalesroom>> getAuctionBidRecordList(@PathVariable("salesroomName") String salesroomName) { |
| | | LambdaQueryWrapper<AuctionSalesroom> wrapper=Wrappers.lambdaQuery(); |
| | | wrapper.eq(AuctionSalesroom::getSalesroomName,salesroomName); |
| | | wrapper.eq(AuctionSalesroom::getDelFlag,0); |
| | | List<AuctionSalesroom> AuctionBidRecordList=iAuctionSalesroomService.list(wrapper); |
| | | return AuctionBidRecordList; |
| | | List<AuctionSalesroom> auctionBidRecordList=iAuctionSalesroomService.list(wrapper); |
| | | return R.ok(auctionBidRecordList); |
| | | |
| | | } |
| | | |
| | |
| | | @RequestMapping("/getBaaner") |
| | | @ResponseBody |
| | | @ApiOperation(value = " 暖场视频or封面海报") |
| | | public AuctionSalesroomVO getBaaner(@PathVariable("salesroomId") Integer SalesroomId) { |
| | | public R<AuctionSalesroomVO> getBaaner(@PathVariable("salesroomId") Integer SalesroomId) { |
| | | |
| | | LambdaQueryWrapper<AuctionVideo> wrapper=Wrappers.lambdaQuery(); |
| | | wrapper.eq(AuctionVideo::getAuctionSalesroomId,SalesroomId); |
| | |
| | | }else{ |
| | | auctionSalesroomVO.setUrl(auctionSalesroom.getCoverPic()); |
| | | } |
| | | return auctionSalesroomVO; |
| | | |
| | | return R.ok(auctionSalesroomVO); |
| | | } |
| | | |
| | | |
| | | @RequestMapping("/getAuctionBidRecordOne") |
| | | @ResponseBody |
| | | @ApiOperation(value = "扫码二维码获取拍卖场信息") |
| | | public R<AuctionSalesroom> getAuctionBidRecordOne(@PathVariable("salesroomName") String salesroomName) { |
| | | LambdaQueryWrapper<AuctionSalesroom> wrapper=Wrappers.lambdaQuery(); |
| | | wrapper.eq(AuctionSalesroom::getSalesroomName,salesroomName); |
| | | wrapper.eq(AuctionSalesroom::getDelFlag,0); |
| | | AuctionSalesroom auctionBidRecord=iAuctionSalesroomService.getOne(wrapper); |
| | | return R.ok(auctionBidRecord); |
| | | |
| | | } |
| | | |
| | | |
| | | } |