From c5f7cdfaf69deb6fb3bb4a8379beb0e9bbe0f3c0 Mon Sep 17 00:00:00 2001
From: rentaiming <806181062@qq.com>
Date: 星期五, 31 五月 2024 16:28:12 +0800
Subject: [PATCH] 修改循环注入

---
 ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/controller/management/MgtAuctionSalesroomController.java |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/controller/management/MgtAuctionSalesroomController.java b/ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/controller/management/MgtAuctionSalesroomController.java
index 1036bc4..0bad556 100644
--- a/ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/controller/management/MgtAuctionSalesroomController.java
+++ b/ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/controller/management/MgtAuctionSalesroomController.java
@@ -1,8 +1,10 @@
 package com.ruoyi.auction.controller.management;
 
 
+import com.ruoyi.auction.controller.management.dto.MgtAuctionSaleroomBidRecordQuery;
 import com.ruoyi.auction.controller.management.dto.MgtAuctionSalesroomDTO;
 import com.ruoyi.auction.controller.management.dto.MgtAuctionSalesroomQuery;
+import com.ruoyi.auction.controller.management.vo.MgtAuctionBidRecordVO;
 import com.ruoyi.auction.controller.management.vo.MgtAuctionSalesroomVO;
 import com.ruoyi.auction.service.IAuctionSalesroomService;
 import com.ruoyi.common.core.domain.R;
@@ -66,6 +68,11 @@
         }
     }
 
+    /**
+     * 添加/编辑 拍卖场
+     *
+     * @param dto 拍卖场数据传输对象
+     */
     @PostMapping("/save")
     @ApiOperation(value = "添加/编辑 拍卖场", notes = "添加/编辑 拍卖场")
     public R<?> saveAuctionSalesroom(
@@ -73,4 +80,29 @@
         auctionSalesroomService.saveAuctionSalesroom(dto);
         return R.ok();
     }
+
+    /**
+     * 查看详情
+     *
+     * @param id 拍卖会id
+     * @return 拍卖场视图对象
+     */
+    @GetMapping("/{id}")
+    @ApiOperation(value = "查看详情", notes = "查看详情")
+    public R<MgtAuctionSalesroomVO> getAuctionSalesroom(@PathVariable("id") Long id) {
+        return R.ok(auctionSalesroomService.getAuctionSalesroom(id));
+    }
+
+    /**
+     * 查看详情-出价记录
+     *
+     * @param query 拍卖场出价记录查询对象
+     * @return PageDTO<MgtAuctionBidRecordVO>
+     */
+    @PostMapping("/bid-record")
+    @ApiOperation(value = "查看详情-出价记录", notes = "查看详情-出价记录")
+    public R<PageDTO<MgtAuctionBidRecordVO>> getAuctionSalesroomBidRecordList(
+            @RequestBody MgtAuctionSaleroomBidRecordQuery query) {
+        return R.ok(auctionSalesroomService.getAuctionSalesroomBidRecordList(query));
+    }
 }

--
Gitblit v1.7.1