From 5d77d64f8e6a88db2b97254fde27a0f53aaec905 Mon Sep 17 00:00:00 2001
From: zhuo <2089219845@qq.com>
Date: 星期四, 06 三月 2025 13:23:36 +0800
Subject: [PATCH] 添加下单权限

---
 inspect-server/src/main/java/com/ruoyi/inspect/controller/RawMaterialOrderController.java |    9 +++++++--
 1 files changed, 7 insertions(+), 2 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..51c05ea 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;
@@ -54,6 +56,8 @@
 
     @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));
     }
@@ -78,7 +82,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 +148,7 @@
     @ApiOperation(value = "鑾峰彇閾滀骇涓氶摼妫�娴嬫暟鎹�")
     @GetMapping("/getIndustryChain")
     public Result<?> getIndustryChain(Integer id) {
-        return Result.success("鎴愬姛", rawMaterialOrderService.getIndustryChain(id));
+        return Result.success(rawMaterialOrderService.getIndustryChain(id));
     }
 
     /**
@@ -210,6 +214,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));

--
Gitblit v1.9.3