From 10aaa035f5be0312304d20f022bdb714a8f4900a Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 11 十二月 2024 22:16:23 +0800
Subject: [PATCH] 代码提交

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedPhysicalController.java |   36 +++++++++++++++++++++++-------------
 1 files changed, 23 insertions(+), 13 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedPhysicalController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedPhysicalController.java
index 5bebbe7..c5f69a2 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedPhysicalController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedPhysicalController.java
@@ -1,7 +1,10 @@
-package com.smartor.controller;
+package com.ruoyi.web.controller.smartor;
 
 import java.util.List;
 import javax.servlet.http.HttpServletResponse;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.GetMapping;
@@ -23,10 +26,11 @@
 
 /**
  * 鎮h�呬綋妫�璁板綍Controller
- * 
+ *
  * @author smartor
  * @date 2023-03-04
  */
+@Api(description = "鎮h�呬綋妫�璁板綍")
 @RestController
 @RequestMapping("/smartor/patphysical")
 public class PatMedPhysicalController extends BaseController
@@ -37,9 +41,10 @@
     /**
      * 鏌ヨ鎮h�呬綋妫�璁板綍鍒楄〃
      */
-    @PreAuthorize("@ss.hasPermi('smartor:patphysical:list')")
-    @GetMapping("/list")
-    public TableDataInfo list(PatMedPhysical patMedPhysical)
+    @ApiOperation("鏌ヨ鎮h�呬綋妫�璁板綍鍒楄〃")
+    //@PreAuthorize("@ss.hasPermi('smartor:patphysical:list')")
+    @PostMapping("/selectPatMedPhysicalList")
+    public TableDataInfo selectPatMedPhysicallist(@RequestBody  PatMedPhysical patMedPhysical)
     {
         startPage();
         List<PatMedPhysical> list = patMedPhysicalService.selectPatMedPhysicalList(patMedPhysical);
@@ -49,7 +54,8 @@
     /**
      * 瀵煎嚭鎮h�呬綋妫�璁板綍鍒楄〃
      */
-    @PreAuthorize("@ss.hasPermi('smartor:patphysical:export')")
+    @ApiOperation("瀵煎嚭鎮h�呬綋妫�璁板綍鍒楄〃")
+    //@PreAuthorize("@ss.hasPermi('smartor:patphysical:export')")
     @Log(title = "鎮h�呬綋妫�璁板綍", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
     public void export(HttpServletResponse response, PatMedPhysical patMedPhysical)
@@ -62,7 +68,8 @@
     /**
      * 鑾峰彇鎮h�呬綋妫�璁板綍璇︾粏淇℃伅
      */
-    @PreAuthorize("@ss.hasPermi('smartor:patphysical:query')")
+    @ApiOperation("鑾峰彇鎮h�呬綋妫�璁板綍璇︾粏淇℃伅")
+    //@PreAuthorize("@ss.hasPermi('smartor:patphysical:query')")
     @GetMapping(value = "/{id}")
     public AjaxResult getInfo(@PathVariable("id") Long id)
     {
@@ -72,9 +79,10 @@
     /**
      * 鏂板鎮h�呬綋妫�璁板綍
      */
-    @PreAuthorize("@ss.hasPermi('smartor:patphysical:add')")
+    @ApiOperation("鏂板鎮h�呬綋妫�璁板綍")
+    //@PreAuthorize("@ss.hasPermi('smartor:patphysical:add')")
     @Log(title = "鎮h�呬綋妫�璁板綍", businessType = BusinessType.INSERT)
-    @PostMapping
+    @PostMapping("/add")
     public AjaxResult add(@RequestBody PatMedPhysical patMedPhysical)
     {
         return toAjax(patMedPhysicalService.insertPatMedPhysical(patMedPhysical));
@@ -83,9 +91,10 @@
     /**
      * 淇敼鎮h�呬綋妫�璁板綍
      */
-    @PreAuthorize("@ss.hasPermi('smartor:patphysical:edit')")
+    @ApiOperation("淇敼鎮h�呬綋妫�璁板綍")
+    //@PreAuthorize("@ss.hasPermi('smartor:patphysical:edit')")
     @Log(title = "鎮h�呬綋妫�璁板綍", businessType = BusinessType.UPDATE)
-    @PutMapping
+    @PostMapping("/edit")
     public AjaxResult edit(@RequestBody PatMedPhysical patMedPhysical)
     {
         return toAjax(patMedPhysicalService.updatePatMedPhysical(patMedPhysical));
@@ -94,9 +103,10 @@
     /**
      * 鍒犻櫎鎮h�呬綋妫�璁板綍
      */
-    @PreAuthorize("@ss.hasPermi('smartor:patphysical:remove')")
+    @ApiOperation("鍒犻櫎鎮h�呬綋妫�璁板綍")
+    //@PreAuthorize("@ss.hasPermi('smartor:patphysical:remove')")
     @Log(title = "鎮h�呬綋妫�璁板綍", businessType = BusinessType.DELETE)
-	@DeleteMapping("/{ids}")
+	@GetMapping("/remove/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids)
     {
         return toAjax(patMedPhysicalService.deletePatMedPhysicalByIds(ids));

--
Gitblit v1.9.3