From 78b0e909aa6ece787091e5d81450c8927ef2599e Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 15 十二月 2023 17:03:12 +0800
Subject: [PATCH] 代码提交

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

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/BaseTagController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/BaseTagController.java
index 0ec41b1..ed2d911 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/BaseTagController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/BaseTagController.java
@@ -4,6 +4,7 @@
 import java.util.List;
 import javax.servlet.http.HttpServletResponse;
 
+import com.ruoyi.common.utils.PageUtils;
 import com.smartor.domain.BaseTag;
 import com.smartor.service.IBaseTagService;
 import io.swagger.annotations.Api;
@@ -45,8 +46,9 @@
     @ApiOperation("鏌ヨ鏍囩鍒楄〃")
     @PreAuthorize("@ss.hasPermi('system:tag:list')")
     @PostMapping("/list")
-    public TableDataInfo list(BaseTag baseTag) {
-        startPage();
+    public TableDataInfo list(@RequestBody BaseTag baseTag) {
+        PageUtils.startPageByPost(baseTag.getPageNum(), baseTag.getPageSize());
+        if (baseTag.getTagcategoryid() == 0) baseTag.setTagcategoryid(null);
         List<BaseTag> list = baseTagService.selectBaseTagList(baseTag);
         return getDataTable(list);
     }
@@ -81,7 +83,7 @@
     @ApiOperation("鏂板鏍囩")
     @PreAuthorize("@ss.hasPermi('system:tag:add')")
     @Log(title = "鏍囩", businessType = BusinessType.INSERT)
-    @PostMapping
+    @PostMapping("/add")
     public AjaxResult add(@RequestBody BaseTag baseTag) {
         return toAjax(baseTagService.insertBaseTag(baseTag));
     }
@@ -92,7 +94,7 @@
     @ApiOperation("淇敼鏍囩")
     @PreAuthorize("@ss.hasPermi('system:tag:edit')")
     @Log(title = "鏍囩", businessType = BusinessType.UPDATE)
-    @PutMapping
+    @PostMapping("/edit")
     public AjaxResult edit(@RequestBody BaseTag baseTag) {
         return toAjax(baseTagService.updateBaseTag(baseTag));
     }
@@ -104,7 +106,7 @@
     @ApiImplicitParam(name = "remove", value = "涓婚敭ID", dataType = "long", dataTypeClass = Array.class)
     @PreAuthorize("@ss.hasPermi('system:tag:remove')")
     @Log(title = "鏍囩", businessType = BusinessType.DELETE)
-    @DeleteMapping("/{tagids}")
+    @GetMapping("/remove/{tagids}")
     public AjaxResult remove(@PathVariable Long[] tagids) {
         return toAjax(baseTagService.deleteBaseTagByTagids(tagids));
     }

--
Gitblit v1.9.3