| | |
| | | package com.ruoyi.auction.controller.management; |
| | | |
| | | |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.ruoyi.auction.controller.management.dto.MgtAuctionSalesroomGoodsQuery; |
| | | import com.ruoyi.auction.controller.management.dto.MgtAuctionSalesroomQuery; |
| | | import com.ruoyi.auction.controller.management.dto.MgtScreenBidPage; |
| | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import java.util.List; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @PutMapping("/add-backup-goods") |
| | | @ApiOperation(value = "选择备选商品", notes = "选择备选商品") |
| | | public R<?> addBackupGoods(@RequestBody List<Long> idList) { |
| | | auctionSalesroomService.addBackupGoods(idList); |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "idStr", value = "商品id集合", required = true) |
| | | }) |
| | | public R<?> addBackupGoods(@RequestParam("idStr") String idStr) { |
| | | auctionSalesroomService.addBackupGoods(idStr); |
| | | return R.ok(); |
| | | } |
| | | |
| | |
| | | public R<?> startCurrentAuctionSalesroom( |
| | | @ApiParam(name = "auctionSalesroomId", value = "拍卖场id", required = true) |
| | | @PathVariable("auctionSalesroomId") Long auctionSalesroomId) { |
| | | auctionSalesroomService.startCurrentAuctionSalesroom(auctionSalesroomId); |
| | | try { |
| | | auctionSalesroomService.startCurrentAuctionSalesroom(auctionSalesroomId); |
| | | } catch (JsonProcessingException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | |
| | | public R<?> stopCurrentAuctionSalesroom( |
| | | @ApiParam(name = "auctionSalesroomId", value = "拍卖场id", required = true) |
| | | @PathVariable("auctionSalesroomId") Long auctionSalesroomId) { |
| | | auctionSalesroomService.stopCurrentAuctionSalesroom(auctionSalesroomId); |
| | | try { |
| | | auctionSalesroomService.stopCurrentAuctionSalesroom(auctionSalesroomId); |
| | | } catch (JsonProcessingException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | } |