From 7cd9dbf45e8e29f3bb0c00ac4f14d5588029c3ba Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期六, 11 十月 2025 17:45:02 +0800
Subject: [PATCH] yys 新增车牌字段
---
main-business/src/main/java/com/ruoyi/business/controller/PendingInventoryController.java | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 50 insertions(+), 3 deletions(-)
diff --git a/main-business/src/main/java/com/ruoyi/business/controller/PendingInventoryController.java b/main-business/src/main/java/com/ruoyi/business/controller/PendingInventoryController.java
index 1aac7da..0bee476 100644
--- a/main-business/src/main/java/com/ruoyi/business/controller/PendingInventoryController.java
+++ b/main-business/src/main/java/com/ruoyi/business/controller/PendingInventoryController.java
@@ -1,8 +1,12 @@
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.PendingInventoryDto;
+import com.ruoyi.business.service.PendingInventoryService;
+import com.ruoyi.common.core.domain.R;
import lombok.AllArgsConstructor;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
/**
* <p>
@@ -15,7 +19,50 @@
@RestController
@AllArgsConstructor
-@RequestMapping("/business/pendingInventory")
+@RequestMapping("/pendingInventory")
public class PendingInventoryController {
+ private PendingInventoryService pendingInventoryService;
+
+ /**
+ * 寰呭叆搴撹〃鏌ヨ
+ */
+ @GetMapping("/list")
+ public R<IPage<PendingInventoryDto>> list(Page page, PendingInventoryDto pendingInventoryDto) {
+ IPage<PendingInventoryDto> list = pendingInventoryService.selectPendingInventoryList(page, pendingInventoryDto);
+ return R.ok(list);
+ }
+
+ /**
+ * 寰呭叆搴撴柊澧炰慨鏀�
+ */
+ @PostMapping("/addOrEditPending")
+ public R addOrEditPending(@RequestBody PendingInventoryDto pendingInventoryDto) {
+ return R.ok(pendingInventoryService.addOrEditPending(pendingInventoryDto));
+ }
+
+
+ /**
+ * 寰呭叆搴撶叅璐ㄦ柟妗堝�间慨鏀逛繚瀛�
+ */
+ @PostMapping("/addOrEditCoalValue")
+ public R addOrEditCoalValue(@RequestBody PendingInventoryDto pendingInventoryDto) {
+ return R.ok(pendingInventoryService.addOrEditCoalValue(pendingInventoryDto));
+ }
+
+ /**
+ * 鍒犻櫎
+ */
+ @DeleteMapping("/delPending")
+ public R remove(@RequestBody Long[] ids) {
+ return R.ok(pendingInventoryService.delByIds(ids));
+ }
+
+ /**
+ * 閰嶇叅璁$畻鍣ㄥ埌寰呭叆搴�
+ */
+ @PostMapping("/addPending")
+ public R addPending(@RequestBody PendingInventoryDto pendingInventoryDto) {
+ return R.ok(pendingInventoryService.addPending(pendingInventoryDto));
+ }
}
--
Gitblit v1.9.3