From 5d1d54e83546ba9fc85c69b32287883d04f4a475 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 01 十一月 2024 18:56:13 +0800
Subject: [PATCH] 代码提交

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedInspectionController.java |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedInspectionController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedInspectionController.java
index a8cf7de..1313205 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedInspectionController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedInspectionController.java
@@ -25,7 +25,7 @@
  */
 @Api(description = "鎮h�呮鏌ユ楠岃褰�")
 @RestController
-@RequestMapping("/system/inspection")
+@RequestMapping("/smartor/inspection")
 public class PatMedInspectionController extends BaseController {
     @Autowired
     private IPatMedInspectionService patMedInspectionService;
@@ -34,9 +34,9 @@
      * 鏌ヨ鎮h�呮鏌ユ楠岃褰曞垪琛�
      */
     @ApiOperation("鏌ヨ鎮h�呮鏌ユ楠岃褰曞垪琛�")
-    @PreAuthorize("@ss.hasPermi('system:inspection:list')")
-    @GetMapping("/list")
-    public TableDataInfo list(PatMedInspection patMedInspection) {
+    //@PreAuthorize("@ss.hasPermi('system:inspection:list')")
+   @PostMapping("/list")
+    public TableDataInfo list(@RequestBody PatMedInspection patMedInspection) {
         startPage();
         List<PatMedInspection> list = patMedInspectionService.selectPatMedInspectionList(patMedInspection);
         return getDataTable(list);
@@ -46,7 +46,7 @@
      * 瀵煎嚭鎮h�呮鏌ユ楠岃褰曞垪琛�
      */
     @ApiOperation("瀵煎嚭鎮h�呮鏌ユ楠岃褰曞垪琛�")
-    @PreAuthorize("@ss.hasPermi('system:inspection:export')")
+    //@PreAuthorize("@ss.hasPermi('system:inspection:export')")
     @Log(title = "鎮h�呮鏌ユ楠岃褰�", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
     public void export(HttpServletResponse response, PatMedInspection patMedInspection) {
@@ -59,7 +59,7 @@
      * 鑾峰彇鎮h�呮鏌ユ楠岃褰曡缁嗕俊鎭�
      */
     @ApiOperation("鑾峰彇鎮h�呮鏌ユ楠岃褰曡缁嗕俊鎭�")
-    @PreAuthorize("@ss.hasPermi('system:inspection:query')")
+    //@PreAuthorize("@ss.hasPermi('system:inspection:query')")
     @GetMapping(value = "/{id}")
     public AjaxResult getInfo(@PathVariable("id") Long id) {
         return success(patMedInspectionService.selectPatMedInspectionById(id));
@@ -68,10 +68,10 @@
     /**
      * 鏂板鎮h�呮鏌ユ楠岃褰�
      */
-    @PreAuthorize("@ss.hasPermi('system:inspection:add')")
+    //@PreAuthorize("@ss.hasPermi('system:inspection:add')")
     @Log(title = "鏂板鎮h�呮鏌ユ楠岃褰�", businessType = BusinessType.INSERT)
     @ApiOperation("鏂板鎮h�呮鏌ユ楠岃褰�")
-    @PostMapping
+    @PostMapping("/add")
     public AjaxResult add(@RequestBody PatMedInspection patMedInspection) {
         return toAjax(patMedInspectionService.insertPatMedInspection(patMedInspection));
     }
@@ -79,10 +79,10 @@
     /**
      * 淇敼鎮h�呮鏌ユ楠岃褰�
      */
-    @PreAuthorize("@ss.hasPermi('system:inspection:edit')")
+    //@PreAuthorize("@ss.hasPermi('system:inspection:edit')")
     @Log(title = "淇敼鎮h�呮鏌ユ楠岃褰�", businessType = BusinessType.UPDATE)
     @ApiOperation("淇敼鎮h�呮鏌ユ楠岃褰�")
-    @PutMapping
+    @PostMapping("/edit")
     public AjaxResult edit(@RequestBody PatMedInspection patMedInspection) {
         return toAjax(patMedInspectionService.updatePatMedInspection(patMedInspection));
     }
@@ -90,10 +90,10 @@
     /**
      * 鍒犻櫎鎮h�呮鏌ユ楠岃褰�
      */
-    @PreAuthorize("@ss.hasPermi('system:inspection:remove')")
+    //@PreAuthorize("@ss.hasPermi('system:inspection:remove')")
     @Log(title = "鎮h�呮鏌ユ楠岃褰�", businessType = BusinessType.DELETE)
     @ApiOperation("鎮h�呮鏌ユ楠岃褰�")
-    @DeleteMapping("/{ids}")
+    @GetMapping("/remove/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids) {
         return toAjax(patMedInspectionService.deletePatMedInspectionByIds(ids));
     }

--
Gitblit v1.9.3