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

---
 inspect-server/src/main/java/com/ruoyi/inspect/controller/FinishProductSpotCheckController.java |  198 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 198 insertions(+), 0 deletions(-)

diff --git a/inspect-server/src/main/java/com/ruoyi/inspect/controller/FinishProductSpotCheckController.java b/inspect-server/src/main/java/com/ruoyi/inspect/controller/FinishProductSpotCheckController.java
new file mode 100644
index 0000000..d671ee8
--- /dev/null
+++ b/inspect-server/src/main/java/com/ruoyi/inspect/controller/FinishProductSpotCheckController.java
@@ -0,0 +1,198 @@
+package com.ruoyi.inspect.controller;
+
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ruoyi.common.core.domain.Result;
+import com.ruoyi.inspect.dto.IfsStockQueryDTO;
+import com.ruoyi.inspect.dto.SpotCheckQuarterDto;
+import com.ruoyi.inspect.dto.SpotCheckYearDto;
+import com.ruoyi.inspect.service.FinishProductSpotCheckService;
+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 zhuo
+ * @Date 2024/9/29
+ */
+@RequestMapping("/finishProductSpotCheck")
+@RestController
+@AllArgsConstructor
+@Api(tags = "鎴愬搧鎶芥牱")
+public class FinishProductSpotCheckController {
+
+    private FinishProductSpotCheckService finishProductSpotCheckService;
+
+    /**
+     * 鏌ヨifs搴撳瓨鏁伴噺
+     *
+     * @param ifsStockQueryDTO
+     * @return
+     */
+    @ApiOperation(value = "鏌ヨifs鎴愬搧搴撳瓨")
+    @PostMapping("/getIfsStock")
+    public Result getIfsStock(@RequestBody IfsStockQueryDTO ifsStockQueryDTO) {
+        return finishProductSpotCheckService.getIfsStockReport(ifsStockQueryDTO);
+    }
+
+    /********************************************************  瀛e害鎶芥牱  ********************************************************/
+
+    /**
+     * 鏂板瀛e害鎶芥
+     *
+     * @param spotCheckQuarterDto
+     * @return
+     */
+    @ApiOperation(value = "鏂板瀛e害鎶芥")
+    @PostMapping("/addQuarter")
+    public Result addQuarter(@RequestBody SpotCheckQuarterDto spotCheckQuarterDto) {
+        return Result.success(finishProductSpotCheckService.addQuarter(spotCheckQuarterDto));
+    }
+
+    /**
+     * 鏌ヨ瀛e害鎶芥牱璇︽儏
+     *
+     * @param quarterId
+     * @return
+     */
+    @ApiOperation(value = "鏌ヨ瀛e害鎶芥牱璇︽儏")
+    @GetMapping("/getQuarter")
+    public Result getQuarter(Integer quarterId) {
+        return Result.success(finishProductSpotCheckService.getQuarter(quarterId));
+    }
+
+    /**
+     * 瀛e害鎶芥牱鍒楄〃
+     * @return
+     * @throws Exception
+     */
+    @ApiOperation(value = "瀛e害鎶芥牱鍒楄〃")
+    @GetMapping("/getQuarterPage")
+    public Result getQuarterPage(Page page, SpotCheckQuarterDto spotCheckQuarter) throws Exception {
+        return Result.success(finishProductSpotCheckService.getQuarterPage(page, spotCheckQuarter));
+    }
+
+    /**
+     * 鏂板瀛e害鎶芥
+     *
+     * @param quarterId
+     * @return
+     */
+    @ApiOperation(value = "鍒犻櫎瀛e害妫�楠�")
+    @DeleteMapping("/deleteQuarter")
+    public Result deleteQuarter(Integer quarterId) {
+        return Result.success(finishProductSpotCheckService.deleteQuarter(quarterId));
+    }
+
+    /**
+     * 鎴愬搧涓嬪崟鐣岄潰鏌ヨ瀛e害淇℃伅
+     *
+     * @return
+     */
+    @ApiOperation(value = "鎴愬搧涓嬪崟鐣岄潰鏌ヨ瀛e害淇℃伅")
+    @GetMapping("/getQuarterOnOrder")
+    public Result getQuarterOnOrder() {
+        return Result.success(finishProductSpotCheckService.getQuarterOnOrder());
+    }
+
+    /**
+     * 鎴愬搧涓嬪崟鐣岄潰鏌ヨ瀛e害淇℃伅
+     *
+     * @return
+     */
+    @ApiOperation(value = "淇敼瀛e害妫�楠�")
+    @PostMapping("/updateQuarterOnOrder")
+    public Result updateQuarterOnOrder(@RequestBody SpotCheckQuarterDto spotCheckQuarterDto) {
+        return Result.success(finishProductSpotCheckService.updateQuarterOnOrder(spotCheckQuarterDto));
+    }
+
+    /**
+     * 鎴愬搧涓嬪崟鐣岄潰鏌ヨ瀛e害淇℃伅
+     *
+     * @return
+     */
+    @ApiOperation(value = "鎻愪氦鏈�缁堝搴︽姤鍛�")
+    @GetMapping("/finalReportQuarter")
+    public void finalReportQuarter(Integer quarterId, HttpServletResponse response) {
+        finishProductSpotCheckService.finalReportQuarter(quarterId, response);
+    }
+
+
+
+
+
+    /********************************************************  骞村害鎶芥牱  ********************************************************/
+
+    /**
+     * 鏂板骞村害鎶芥牱
+     *
+     * @param spotCheckYearDto
+     * @return
+     */
+    @ApiOperation(value = "鏂板骞村害鎶芥牱")
+    @PostMapping("/addSpotCheckYear")
+    public Result addSpotCheckYear(@RequestBody SpotCheckYearDto spotCheckYearDto) {
+        return Result.success(finishProductSpotCheckService.addSpotCheckYear(spotCheckYearDto));
+    }
+
+    /**
+     * 鏌ヨ瀛e害鎶芥牱璇︽儏
+     *
+     * @param yearId
+     * @return
+     */
+    @ApiOperation(value = "鏌ヨ骞村害鎶芥牱璇︽儏")
+    @GetMapping("/getSpotCheckYear")
+    public Result getSpotCheckYear(Integer yearId) {
+        return Result.success(finishProductSpotCheckService.getSpotCheckYear(yearId));
+    }
+
+    /**
+     * 瀛e害鎶芥牱鍒楄〃
+     * @return
+     * @throws Exception
+     */
+    @ApiOperation(value = "骞村害鎶芥牱鍒楄〃鍒楄〃")
+    @GetMapping("/getSpotCheckYearPage")
+    public Result getSpotCheckYearPage(Page page, SpotCheckYearDto spotCheckYear) throws Exception {
+        return Result.success(finishProductSpotCheckService.getSpotCheckYearPage(page, spotCheckYear));
+    }
+
+    /**
+     * 鍒犻櫎骞村害鎶芥牱
+     *
+     * @param yearId
+     * @return
+     */
+    @ApiOperation(value = "鍒犻櫎骞村害鎶芥牱")
+    @DeleteMapping("/deleteSpotCheckYear")
+    public Result deleteSpotCheckYear(Integer yearId) {
+        return Result.success(finishProductSpotCheckService.deleteSpotCheckYear(yearId));
+    }
+
+    /**
+     * 鎴愬搧涓嬪崟鐣岄潰鏌ヨ瀛e害淇℃伅
+     *
+     * @return
+     */
+    @ApiOperation(value = "淇敼骞村害妫�楠�")
+    @PostMapping("/updateSpotCheckYear")
+    public Result updateSpotCheckYear(@RequestBody SpotCheckYearDto spotCheckYearDto) {
+        return Result.success(finishProductSpotCheckService.updateSpotCheckYear(spotCheckYearDto));
+    }
+
+    /**
+     * 鎴愬搧涓嬪崟鐣岄潰鏌ヨ瀛e害淇℃伅
+     *
+     * @return
+     */
+    @ApiOperation(value = "鐢熸垚鏈�缁堝勾搴︽姤鍛�")
+    @GetMapping("/finalReportSpotCheckYear")
+    public Result finalReportSpotCheckYear(Integer yearId, HttpServletResponse response) {
+        return Result.success(finishProductSpotCheckService.finalReportSpotCheckYear(yearId, response));
+    }
+
+}

--
Gitblit v1.9.3