From 388bd216d4eb70b367ada95118d1087b45f07ae3 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期一, 09 六月 2025 17:53:48 +0800
Subject: [PATCH] 1.煤质部分 2.代入库部分

---
 main-business/src/main/java/com/ruoyi/business/controller/OfficialInventoryController.java |   40 +++++++++++++++++++++++++++++-----------
 1 files changed, 29 insertions(+), 11 deletions(-)

diff --git a/main-business/src/main/java/com/ruoyi/business/controller/OfficialInventoryController.java b/main-business/src/main/java/com/ruoyi/business/controller/OfficialInventoryController.java
index dd4b2e8..b9cac2d 100644
--- a/main-business/src/main/java/com/ruoyi/business/controller/OfficialInventoryController.java
+++ b/main-business/src/main/java/com/ruoyi/business/controller/OfficialInventoryController.java
@@ -1,21 +1,39 @@
 package com.ruoyi.business.controller;
 
-import org.springframework.web.bind.annotation.RequestMapping;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ruoyi.business.dto.OfficialInventoryDto;
+import com.ruoyi.business.entity.OfficialInventory;
+import com.ruoyi.business.service.OfficialInventoryService;
+import com.ruoyi.common.core.domain.R;
 import lombok.AllArgsConstructor;
-    import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
 
 /**
-* <p>
-    * 姝e紡搴撳瓨琛� 鍓嶇鎺у埗鍣�
-    * </p>
-*
-* @author ruoyi
-* @since 2025-06-04
-*/
+ * <p>
+ * 姝e紡搴撳瓨琛� 鍓嶇鎺у埗鍣�
+ * </p>
+ *
+ * @author ruoyi
+ * @since 2025-06-04
+ */
 
 @RestController
 @AllArgsConstructor
-@RequestMapping("/business/officialInventory")
-        public class OfficialInventoryController {
+@RequestMapping("/officialInventory")
+public class OfficialInventoryController {
 
+    private OfficialInventoryService officialInventoryService;
+
+    /**
+     * 姝e紡搴撳簱琛ㄦ煡璇�
+     */
+    @GetMapping("/list")
+    public R<IPage<OfficialInventory>> list(Page page, OfficialInventoryDto officialInventoryDto) {
+        IPage<OfficialInventory> list = officialInventoryService.selectOfficialInventoryList(page,officialInventoryDto);
+        return R.ok(list);
     }
+
+}

--
Gitblit v1.9.3