Bläddra i källkod

-修改:5s管理附件权限

jiangbiao 2 år sedan
förälder
incheckning
8193906e97

+ 6 - 7
master/src/main/java/com/ruoyi/project/production/controller/TFivesFileController.java

@@ -11,7 +11,6 @@ import com.ruoyi.framework.web.page.TableDataInfo;
 import com.ruoyi.project.production.domain.TFivesFile;
 import com.ruoyi.project.production.service.ITFivesFileService;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
 
@@ -35,7 +34,7 @@ public class TFivesFileController extends BaseController
     /**
      * 查询5s管理附件列表
      */
-    @PreAuthorize("@ss.hasPermi('production:file:list')")
+   // @PreAuthorize("@ss.hasPermi('production:file:list')")
     @GetMapping("/list")
     public TableDataInfo list(TFivesFile tFivesFile)
     {
@@ -47,7 +46,7 @@ public class TFivesFileController extends BaseController
     /**
      * 导出5s管理附件列表
      */
-    @PreAuthorize("@ss.hasPermi('production:file:export')")
+    //@PreAuthorize("@ss.hasPermi('production:file:export')")
     @Log(title = "5s管理附件", businessType = BusinessType.EXPORT)
     @GetMapping("/export")
     public AjaxResult export(TFivesFile tFivesFile)
@@ -60,7 +59,7 @@ public class TFivesFileController extends BaseController
     /**
      * 获取5s管理附件详细信息
      */
-    @PreAuthorize("@ss.hasPermi('production:file:query')")
+    //@PreAuthorize("@ss.hasPermi('production:file:query')")
     @GetMapping(value = "/{id}")
     public AjaxResult getInfo(@PathVariable("id") Long id)
     {
@@ -70,7 +69,7 @@ public class TFivesFileController extends BaseController
     /**
      * 新增5s管理附件
      */
-    @PreAuthorize("@ss.hasPermi('production:file:add')")
+    //@PreAuthorize("@ss.hasPermi('production:file:add')")
     @Log(title = "5s管理附件", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody TFivesFile tFivesFile)
@@ -81,7 +80,7 @@ public class TFivesFileController extends BaseController
     /**
      * 修改5s管理附件
      */
-    @PreAuthorize("@ss.hasPermi('production:file:edit')")
+//    @PreAuthorize("@ss.hasPermi('production:file:edit')")
     @Log(title = "5s管理附件", businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody TFivesFile tFivesFile)
@@ -92,7 +91,7 @@ public class TFivesFileController extends BaseController
     /**
      * 删除5s管理附件
      */
-    @PreAuthorize("@ss.hasPermi('production:file:remove')")
+   // @PreAuthorize("@ss.hasPermi('production:file:remove')")
     @Log(title = "5s管理附件", businessType = BusinessType.DELETE)
 	@DeleteMapping("/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids)