From 907641e56c2085aaa81f267946dc3e3e9fca73e7 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 18 九月 2024 09:39:02 +0800
Subject: [PATCH] 代码提交

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyCategoryController.java |   43 ++++++++++++++++++++++++++++---------------
 1 files changed, 28 insertions(+), 15 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyCategoryController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyCategoryController.java
index ccb0e4e..54ce334 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyCategoryController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyCategoryController.java
@@ -3,6 +3,8 @@
 import java.util.List;
 import javax.servlet.http.HttpServletResponse;
 
+import com.smartor.domain.IvrLibaScriptAssortVO;
+import com.smartor.domain.SvyCategoryVO;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiModelProperty;
 import io.swagger.annotations.ApiOperation;
@@ -35,30 +37,30 @@
     /**
      * 鏌ヨ闂嵎鍒嗙被鍒楄〃
      */
-    @PreAuthorize("@ss.hasPermi('smartor:svycategory:list')")
-    @GetMapping("/list")
-    public TableDataInfo list(SvyCategory svyCategory) {
-        startPage();
-        List<SvyCategory> list = svyCategoryService.selectSvyCategoryList(svyCategory);
+    //@PreAuthorize("@ss.hasPermi('smartor:svycategory:list')")
+    @PostMapping("/list")
+    public TableDataInfo list(@RequestBody SvyCategory svyCategory) {
+//        startPage();
+        List<SvyCategoryVO> list = svyCategoryService.selectSvyCategoryList(svyCategory);
         return getDataTable(list);
     }
 
     /**
      * 瀵煎嚭闂嵎鍒嗙被鍒楄〃
      */
-    @PreAuthorize("@ss.hasPermi('smartor:svycategory:export')")
+    //@PreAuthorize("@ss.hasPermi('smartor:svycategory:export')")
     @Log(title = "闂嵎鍒嗙被", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
     public void export(HttpServletResponse response, SvyCategory svyCategory) {
-        List<SvyCategory> list = svyCategoryService.selectSvyCategoryList(svyCategory);
-        ExcelUtil<SvyCategory> util = new ExcelUtil<SvyCategory>(SvyCategory.class);
+        List<SvyCategoryVO> list = svyCategoryService.selectSvyCategoryList(svyCategory);
+        ExcelUtil<SvyCategoryVO> util = new ExcelUtil<SvyCategoryVO>(SvyCategoryVO.class);
         util.exportExcel(response, list, "闂嵎鍒嗙被鏁版嵁");
     }
 
     /**
      * 鑾峰彇闂嵎鍒嗙被淇℃伅閫氳繃鍒嗙被鍚嶇О
      */
-    // @PreAuthorize("@ss.hasPermi('smartor:svycategory:query')")
+    // //@PreAuthorize("@ss.hasPermi('smartor:svycategory:query')")
     @ApiOperation("鑾峰彇闂嵎鍒嗙被璇︾粏淇℃伅锛堥棶鍗风被鍒級")
     @PostMapping(value = "/getInfo")
     public TableDataInfo getInfo(@RequestParam(required = false) String categoryname) {
@@ -68,21 +70,32 @@
     /**
      * 鏂板闂嵎鍒嗙被
      */
-    @PreAuthorize("@ss.hasPermi('smartor:svycategory:add')")
+    //@PreAuthorize("@ss.hasPermi('smartor:svycategory:add')")
     @Log(title = "闂嵎鍒嗙被", businessType = BusinessType.INSERT)
     @ApiOperation("鏂板闂嵎鍒嗙被")
-    @PostMapping
+    @PostMapping("/add")
     public AjaxResult add(@RequestBody SvyCategory svyCategory) {
         return toAjax(svyCategoryService.insertSvyCategory(svyCategory));
     }
 
     /**
+     * 鏂板闂嵎鍒嗙被鏍�
+     */
+    //@PreAuthorize("@ss.hasPermi('system:assort:add')")
+    @Log(title = "闂璇濇湳鍒嗙被搴�", businessType = BusinessType.INSERT)
+    @ApiOperation("鏂板闂嵎鍒嗙被鏍�")
+    @PostMapping("/addtree")
+    public AjaxResult addtree(@RequestBody SvyCategoryVO svyCategoryVO) {
+        return toAjax(svyCategoryService.insertSvyCategoryTree(svyCategoryVO));
+    }
+
+    /**
      * 淇敼闂嵎鍒嗙被
      */
-    @PreAuthorize("@ss.hasPermi('smartor:svycategory:edit')")
+    //@PreAuthorize("@ss.hasPermi('smartor:svycategory:edit')")
     @Log(title = "闂嵎鍒嗙被", businessType = BusinessType.UPDATE)
     @ApiOperation("淇敼闂嵎鍒嗙被")
-    @PutMapping
+    @PostMapping("/edit")
     public AjaxResult edit(@RequestBody SvyCategory svyCategory) {
         return toAjax(svyCategoryService.updateSvyCategory(svyCategory));
     }
@@ -90,10 +103,10 @@
     /**
      * 鍒犻櫎闂嵎鍒嗙被
      */
-    @PreAuthorize("@ss.hasPermi('smartor:svycategory:remove')")
+    //@PreAuthorize("@ss.hasPermi('smartor:svycategory:remove')")
     @Log(title = "闂嵎鍒嗙被", businessType = BusinessType.DELETE)
     @ApiOperation("鍒犻櫎闂嵎鍒嗙被")
-    @DeleteMapping("/{ids}")
+    @GetMapping("/remove/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids) {
         return toAjax(svyCategoryService.deleteSvyCategoryByIds(ids));
     }

--
Gitblit v1.9.3