From 4f3a98f19143865cdc1de4791e8a95d96bd40c65 Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期五, 01 八月 2025 13:27:59 +0800
Subject: [PATCH] yys 密码已重置

---
 cnas-require/src/main/java/com/ruoyi/require/controller/InternalWastesController.java |   96 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 96 insertions(+), 0 deletions(-)

diff --git a/cnas-require/src/main/java/com/ruoyi/require/controller/InternalWastesController.java b/cnas-require/src/main/java/com/ruoyi/require/controller/InternalWastesController.java
new file mode 100644
index 0000000..735e72b
--- /dev/null
+++ b/cnas-require/src/main/java/com/ruoyi/require/controller/InternalWastesController.java
@@ -0,0 +1,96 @@
+package com.ruoyi.require.controller;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ruoyi.common.core.domain.Result;
+import com.ruoyi.common.utils.JackSonUtil;
+import com.ruoyi.require.dto.InternalWastesDto;
+import com.ruoyi.require.pojo.InternalWastes;
+import com.ruoyi.require.service.InternalWastesService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.AllArgsConstructor;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.Map;
+
+/**
+ * <p>
+ * 瀹夊叏鍐呭姟涓夊簾鐧昏 鍓嶇鎺у埗鍣�
+ * </p>
+ *
+ * @author
+ * @since 2024-11-19 06:39:27
+ */
+@Api(tags = "瀹夊叏鍐呭姟涓夊簾鐧昏")
+@AllArgsConstructor
+@RestController
+@RequestMapping("/internalWastes")
+public class InternalWastesController {
+
+    private InternalWastesService internalWastesService;
+
+    /**
+     * 瀹夊叏鍐呭姟涓夊簾澶勭悊鍒嗛〉鏌ヨ
+     * @param page
+     * @param internalWastes
+     * @return
+     */
+    @ApiOperation(value = "瀹夊叏鍐呭姟涓夊簾澶勭悊鍒嗛〉鏌ヨ")
+    @GetMapping("/pageInternalWastes")
+    public Result<IPage<InternalWastesDto>> pageInternalWastes(Page page,InternalWastes internalWastes) throws Exception {
+        return Result.success(internalWastesService.pageInternalWastes(page, internalWastes));
+    }
+
+    /**
+     * 瀹夊叏鍐呭姟涓夊簾澶勭悊鏂板
+     * @return
+     */
+    @ApiOperation(value = "瀹夊叏鍐呭姟涓夊簾澶勭悊鏂板")
+    @PostMapping("/addInternalWastes")
+    public Result addInternalWastes(@RequestBody InternalWastesDto internalWastes){
+        return Result.success(internalWastesService.addInternalWastes(internalWastes));
+    }
+
+    /**
+     * 瀹夊叏鍐呭姟涓夊簾澶勭悊淇敼
+     * @return
+     */
+    @ApiOperation(value = "瀹夊叏鍐呭姟涓夊簾澶勭悊淇敼")
+    @PostMapping("/updateInternalWastes")
+    public Result updateInternalWastes(@RequestBody InternalWastesDto internalWastes){
+        return Result.success(internalWastesService.updateInternalWastes(internalWastes));
+    }
+
+    /**
+     * 瀹夊叏鍐呭姟涓夊簾澶勭悊鍒犻櫎
+     * @return
+     */
+    @ApiOperation(value = "瀹夊叏鍐呭姟涓夊簾澶勭悊鍒犻櫎")
+    @DeleteMapping("/delInternalWastes")
+    public Result delInternalWastes(Integer wastesId){
+        return Result.success(internalWastesService.delInternalWastes(wastesId));
+    }
+
+    /**
+     * 瀹夊叏鍐呭姟涓夊簾澶勭悊鏌ョ湅璇︽儏
+     * @return
+     */
+    @ApiOperation(value = "瀹夊叏鍐呭姟涓夊簾澶勭悊鏌ョ湅璇︽儏")
+    @GetMapping("/getInternalWastesOne")
+    public Result<InternalWastesDto> getInternalWastesOne(Integer wastesId){
+        return Result.success(internalWastesService.getInternalWastesOne(wastesId));
+    }
+
+    /**
+     * 瀵煎嚭涓夊簾澶勭悊
+     * @return
+     */
+    @ApiOperation(value = "瀵煎嚭涓夊簾澶勭悊")
+    @GetMapping("/exportInternalWastes")
+    public void exportInternalWastes(Integer wastesId, HttpServletResponse response){
+        internalWastesService.exportInternalWastes(wastesId, response);
+    }
+
+}

--
Gitblit v1.9.3