From 562a960261b75d70abd65aa10528f09aeece94e8 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 24 九月 2024 09:49:23 +0800
Subject: [PATCH] 代码提交

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatMedWeightController.java |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 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 f49d9cf..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
@@ -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