From f682213b9ff8a7d41ea16edfb1b68d996c46e080 Mon Sep 17 00:00:00 2001
From: zhuo <2089219845@qq.com>
Date: 星期六, 29 三月 2025 14:03:36 +0800
Subject: [PATCH] 1.清除无用方法 2.检测项目预警修改 3.数采绑定调整

---
 inspect-server/src/main/java/com/ruoyi/inspect/controller/RawMaterialOrderController.java |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/inspect-server/src/main/java/com/ruoyi/inspect/controller/RawMaterialOrderController.java b/inspect-server/src/main/java/com/ruoyi/inspect/controller/RawMaterialOrderController.java
index abc3b2a..189dd0b 100644
--- a/inspect-server/src/main/java/com/ruoyi/inspect/controller/RawMaterialOrderController.java
+++ b/inspect-server/src/main/java/com/ruoyi/inspect/controller/RawMaterialOrderController.java
@@ -5,6 +5,7 @@
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.ruoyi.basic.dto.*;
 import com.ruoyi.basic.pojo.IfsInventoryQuantity;
+import com.ruoyi.common.annotation.PersonalScope;
 import com.ruoyi.inspect.dto.InsPlaceOrderDto;
 import com.ruoyi.inspect.dto.SampleProductDto;
 import com.ruoyi.inspect.pojo.InsOrder;
@@ -19,6 +20,7 @@
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.AllArgsConstructor;
+import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 
 import javax.servlet.http.HttpServletResponse;
@@ -43,7 +45,7 @@
     @ApiOperation(value = "鏇村叿闆朵欢鍙疯幏鍙栨爣鍑嗘爲")
     @GetMapping("/selectStandardTreeListByPartNo")
     public Result selectStandardTreeListByPartNo(String partNo) {
-        return Result.success(rawMaterialOrderService.selectStandardTreeListByPartNo(partNo));
+        return rawMaterialOrderService.selectStandardTreeListByPartNo(partNo);
     }
 
     @ApiOperation(value = "鍘熸潗鏂欐楠屾煡璇唬涓嬪崟")
@@ -54,12 +56,16 @@
 
     @ApiOperation(value = "鍘熸潗鏂欐楠屾煡璇㈡楠屼腑")
     @GetMapping("/getIfsByStateOne")
+    @PreAuthorize("@ss.hasPermi('business:order')")
+    @PersonalScope(permsName = "business:order", objectName = IfsInventoryQuantityDto.class, paramName = "createUser")
     public Result getIfsByStateOne(Page page, IfsInventoryQuantityDto ifsInventoryQuantityDto){
         return Result.success(rawMaterialOrderService.getIfsByStateOne(page, ifsInventoryQuantityDto));
     }
 
     @ApiOperation(value = "鍘熸潗鏂欐楠屾煡璇㈠凡妫�楠�")
     @GetMapping("/getIfsByOver")
+    @PreAuthorize("@ss.hasPermi('business:order')")
+    @PersonalScope(permsName = "business:order", objectName = IfsInventoryQuantitySupplierDto.class, paramName = "createUser")
     public Result getIfsByOver(Page page, IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto){
         return Result.success(rawMaterialOrderService.getIfsByOver(page, ifsInventoryQuantityDto));
     }
@@ -78,7 +84,7 @@
     @ApiOperation(value = "閫氳繃鍘熸潗鏂欐楠屽崟妯℃澘id鑾峰彇妫�楠屽崟妯℃澘鍐呭")
     @GetMapping("/selectRawMaterOrderTemplateById")
     public Result<?> selectRawMaterOrderTemplateById(Integer id) {
-        return Result.success("鎴愬姛", rawMaterialOrderTemplateService.selectRawMaterOrderTemplateById(id));
+        return Result.success(rawMaterialOrderTemplateService.selectRawMaterOrderTemplateById(id));
     }
 
     @ApiOperation(value = "鍒犻櫎鍘熸潗鏂欐楠屽崟妯℃澘")
@@ -144,7 +150,7 @@
     @ApiOperation(value = "鑾峰彇閾滀骇涓氶摼妫�娴嬫暟鎹�")
     @GetMapping("/getIndustryChain")
     public Result<?> getIndustryChain(Integer id) {
-        return Result.success("鎴愬姛", rawMaterialOrderService.getIndustryChain(id));
+        return Result.success(rawMaterialOrderService.getIndustryChain(id));
     }
 
     /**
@@ -210,6 +216,7 @@
 
 
     @ApiOperation(value = "鍘熸潗鏂欐姤妫�鏌ヨ鍏ㄩ儴")
+    @PreAuthorize("@ss.hasPermi('get:Ifs:ByAll')")
     @GetMapping("/getIfsByAll")
     public Result getIfsByAll(Page page, IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto){
         return Result.success(rawMaterialOrderService.getIfsByOver(page, ifsInventoryQuantityDto));
@@ -295,6 +302,8 @@
 
     @ApiOperation(value = "鍘熸潗鏂欐楠屾煡璇㈠搴︽楠�")
     @GetMapping("/getIfsByQuarter")
+    @PreAuthorize("@ss.hasPermi('business:order')")
+    @PersonalScope(permsName = "business:order", objectName = IfsInventoryQuantitySupplierDto.class, paramName = "createUser")
     public Result getIfsByQuarter(Page page, IfsInventoryQuantitySupplierDto ifsInventoryQuantityDto){
         return Result.success(rawMaterialOrderService.getIfsByQuarter(page, ifsInventoryQuantityDto));
     }

--
Gitblit v1.9.3