From da59bd81334e7b4ddeaaa401f27c5b93797fde46 Mon Sep 17 00:00:00 2001
From: zhuo <2089219845@qq.com>
Date: 星期四, 20 二月 2025 10:36:18 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev

---
 cnas-manage/src/main/java/com/ruoyi/manage/controller/InternalReportController.java |  125 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 125 insertions(+), 0 deletions(-)

diff --git a/cnas-manage/src/main/java/com/ruoyi/manage/controller/InternalReportController.java b/cnas-manage/src/main/java/com/ruoyi/manage/controller/InternalReportController.java
new file mode 100644
index 0000000..3b0c6ce
--- /dev/null
+++ b/cnas-manage/src/main/java/com/ruoyi/manage/controller/InternalReportController.java
@@ -0,0 +1,125 @@
+package com.ruoyi.manage.controller;
+
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.deepoove.poi.data.style.*;
+
+import com.ruoyi.common.core.domain.Result;
+import com.ruoyi.common.utils.JackSonUtil;
+import com.ruoyi.manage.pojo.InternalReport;
+import com.ruoyi.manage.service.InternalReportService;
+import com.deepoove.poi.data.style.*;
+import com.deepoove.poi.data.style.*;
+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;
+
+
+/**
+ * 鍐呭鎶ュ憡琛�
+ *
+ * @author makejava
+ * @since 2024-11-11
+ */
+@Api(tags = "鍐呭鎶ュ憡")
+@AllArgsConstructor
+@RestController
+@RequestMapping("/internalReport")
+public class InternalReportController {
+
+    private InternalReportService internalReportService;
+
+    /**
+     * 鍐呭鎶ュ憡鍒嗛〉鏌ヨ
+     * @param
+     * @return
+     */
+
+    @ApiOperation(value = "鍐呭鎶ュ憡鍒嗛〉鏌ヨ")
+    @PostMapping("/pageInternalReport")
+    public Result<IPage<InternalReport>> pageInternalReport(Page page,InternalReport internalReport) throws Exception {
+        return Result.success(internalReportService.pageInternalReport(page, internalReport));
+    }
+
+    /**
+     * 鍐呭鎶ュ憡鏂板
+     * @return
+     */
+
+    @ApiOperation(value = "鍐呭鎶ュ憡鏂板")
+    @PostMapping("/addInternalReport")
+    public Result addInternalReport(@RequestBody InternalReport internalReport){
+        return Result.success(internalReportService.save(internalReport));
+    }
+
+    /**
+     * 鍐呭鎶ュ憡淇敼
+     * @return
+     */
+
+    @ApiOperation(value = "鍐呭鎶ュ憡淇敼")
+    @PostMapping("/updateInternalReport")
+    public Result updateInternalReport(@RequestBody InternalReport internalReport){
+        return Result.success(internalReportService.updateById(internalReport));
+    }
+
+    /**
+     * 鍐呭鎶ュ憡鍒犻櫎
+     * @return
+     */
+
+    @ApiOperation(value = "鍐呭鎶ュ憡鍒犻櫎")
+    @GetMapping("/delInternalReport")
+    public Result delInternalReport(Integer reportId){
+        return Result.success(internalReportService.removeById(reportId));
+    }
+
+    /**
+     * 鍐呭鎶ュ憡鏌ョ湅璇︽儏
+     * @return
+     */
+
+    @ApiOperation(value = "鍐呭鎶ュ憡鏌ョ湅璇︽儏")
+    @GetMapping("/getInternalReportOne")
+    public Result<InternalReport> getInternalReportOne(Integer reportId){
+        return Result.success(internalReportService.getById(reportId));
+    }
+
+    /**
+     * 鍐呭妫�鏌ュ鏍�
+     * @return
+     */
+    @ApiOperation(value = "鍐呭妫�鏌ュ鏍�")
+    @PostMapping("/examineInternalReport")
+    public Result examineInternalReport(@RequestBody InternalReport internalReport){
+        return Result.success(internalReportService.ratifyInternalCheck(internalReport));
+    }
+
+    /**
+     * 鍐呭鎶ュ憡璐ㄩ噺璐熻矗浜哄~鍐�
+     * @return
+     */
+    @ApiOperation(value = "鍐呭鎶ュ憡璐ㄩ噺璐熻矗浜哄~鍐�")
+    @PostMapping("/qualityInternalReport")
+    public Result qualityInternalReport(@RequestBody InternalReport internalReport){
+        return Result.success(internalReportService.qualityInternalReport(internalReport));
+    }
+
+    /**
+     * 瀵煎嚭鍐呭鎶ュ憡
+     * @return
+     */
+
+    @ApiOperation(value = "瀵煎嚭鍐呭鎶ュ憡")
+    @GetMapping("/exportInternalReport")
+    public void exportInternalReport(Integer reportId, HttpServletResponse response){
+        internalReportService.exportInternalReport(reportId, response);
+    }
+
+}
+

--
Gitblit v1.9.3