From 8d913e5594f45ca2a4ce656ea9feb99ffe715913 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 29 十一月 2024 18:44:58 +0800
Subject: [PATCH] 代码提交

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

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java
index 6e51663..b109bb2 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java
@@ -25,7 +25,7 @@
  * @author ruoyi
  * @date 2023-06-07
  */
-@Api("鎮h�呬綋閲嶈褰�")
+@Api(description = "鎮h�呬綋閲嶈褰�")
 @RestController
 @RequestMapping("/system/weight")
 public class PatMedWeightController extends BaseController
@@ -37,9 +37,9 @@
      * 鏌ヨ鎮h�呬綋閲嶈褰曞垪琛�
      */
     @ApiOperation("鏌ヨ鎮h�呬綋閲嶈褰曞垪琛�")
-    @PreAuthorize("@ss.hasPermi('system:weight:list')")
-    @GetMapping("/list")
-    public TableDataInfo list(PatMedWeight patMedWeight)
+    //@PreAuthorize("@ss.hasPermi('system:weight:list')")
+   @PostMapping("/list")
+    public TableDataInfo list(@RequestBody PatMedWeight patMedWeight)
     {
         startPage();
         List<PatMedWeight> list = patMedWeightService.selectPatMedWeightList(patMedWeight);
@@ -50,7 +50,7 @@
      * 瀵煎嚭鎮h�呬綋閲嶈褰曞垪琛�
      */
     @ApiOperation("瀵煎嚭鎮h�呬綋閲嶈褰曞垪琛�")
-    @PreAuthorize("@ss.hasPermi('system:weight:export')")
+    //@PreAuthorize("@ss.hasPermi('system:weight:export')")
     @Log(title = "鎮h�呬綋閲嶈褰�", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
     public void export(HttpServletResponse response, PatMedWeight patMedWeight)
@@ -64,7 +64,7 @@
      * 鑾峰彇鎮h�呬綋閲嶈褰曡缁嗕俊鎭�
      */
     @ApiOperation("鑾峰彇鎮h�呬綋閲嶈褰曡缁嗕俊鎭�")
-    @PreAuthorize("@ss.hasPermi('system:weight:query')")
+    //@PreAuthorize("@ss.hasPermi('system:weight:query')")
     @ApiImplicitParam(name = "getInfo", value = "涓婚敭ID", dataType = "long", dataTypeClass = Long.class)
     @GetMapping(value = "/{id}")
     public AjaxResult getInfo(@PathVariable("id") Long id)
@@ -76,9 +76,9 @@
      * 鏂板鎮h�呬綋閲嶈褰�
      */
     @ApiOperation("鏂板鎮h�呬綋閲嶈褰�")
-    @PreAuthorize("@ss.hasPermi('system:weight:add')")
+    //@PreAuthorize("@ss.hasPermi('system:weight:add')")
     @Log(title = "鎮h�呬綋閲嶈褰�", businessType = BusinessType.INSERT)
-    @PostMapping
+    @PostMapping("/add")
     public AjaxResult add(@RequestBody PatMedWeight patMedWeight)
     {
         return toAjax(patMedWeightService.insertPatMedWeight(patMedWeight));
@@ -88,9 +88,9 @@
      * 淇敼鎮h�呬綋閲嶈褰�
      */
     @ApiOperation("淇敼鎮h�呬綋閲嶈褰�")
-    @PreAuthorize("@ss.hasPermi('system:weight:edit')")
+    //@PreAuthorize("@ss.hasPermi('system:weight:edit')")
     @Log(title = "淇敼鎮h�呬綋閲嶈褰�", businessType = BusinessType.UPDATE)
-    @PutMapping
+    @PostMapping("/edit")
     public AjaxResult edit(@RequestBody PatMedWeight patMedWeight)
     {
         return toAjax(patMedWeightService.updatePatMedWeight(patMedWeight));
@@ -100,10 +100,10 @@
      * 鍒犻櫎鎮h�呬綋閲嶈褰�
      */
     @ApiOperation("鍒犻櫎鎮h�呬綋閲嶈褰�")
-    @PreAuthorize("@ss.hasPermi('system:weight:remove')")
+    //@PreAuthorize("@ss.hasPermi('system:weight:remove')")
     @Log(title = "鍒犻櫎鎮h�呬綋閲嶈褰�", businessType = BusinessType.DELETE)
     @ApiImplicitParam(name = "remove", value = "涓婚敭ID", dataType = "long", dataTypeClass = Array.class)
-	@DeleteMapping("/{ids}")
+	@GetMapping("/remove/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids)
     {
         return toAjax(patMedWeightService.deletePatMedWeightByIds(ids));

--
Gitblit v1.9.3