|
|
@@ -48,14 +48,13 @@ public class LotController extends AdminBaseController {
|
|
|
/**
|
|
|
* 查询拍品列表
|
|
|
*/
|
|
|
- @ApiOperation(value = "查询拍卖会下的拍品列表", notes = "分页查询拍品列表", response = Lot.class, responseContainer = "List<Lot>")
|
|
|
+ @ApiOperation(value = "查询拍品列表", notes = "分页查询拍品列表", response = Lot.class, responseContainer = "List<Lot>")
|
|
|
@PostMapping("/list")
|
|
|
// @RequireRoles({UserType.USER_ROLE_ADMIN})
|
|
|
public AjaxResult list(@RequestBody LotVO lot) {
|
|
|
- if (lot.getAuctionId()==null)
|
|
|
- return AjaxResult.error("拍卖会id不能为空");
|
|
|
+
|
|
|
lot.setDelFlag(Constants.DEL_FLAG_NO_DELETE);
|
|
|
- lot.setAuctionId(lot.getAuctionId());
|
|
|
+
|
|
|
List<Lot> lotList = lotService.selectLotList(lot);
|
|
|
lotList.forEach(l -> {
|
|
|
l.setDelay(StringUtils.isEmpty(l.getDelayPublish()) ? 0 : 1);
|