From ac79f032745c975eb77d6fb148ed390f2373559e Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 28 十二月 2023 17:58:52 +0800
Subject: [PATCH] 代码提交

---
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyCategoryController.java |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 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 ef6e573..340cf00 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;
@@ -36,10 +38,10 @@
      * 鏌ヨ闂嵎鍒嗙被鍒楄〃
      */
     @PreAuthorize("@ss.hasPermi('smartor:svycategory:list')")
-   @PostMapping("/list")
+    @PostMapping("/list")
     public TableDataInfo list(@RequestBody SvyCategory svyCategory) {
-        startPage();
-        List<SvyCategory> list = svyCategoryService.selectSvyCategoryList(svyCategory);
+//        startPage();
+        List<SvyCategoryVO> list = svyCategoryService.selectSvyCategoryList(svyCategory);
         return getDataTable(list);
     }
 
@@ -50,8 +52,8 @@
     @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, "闂嵎鍒嗙被鏁版嵁");
     }
 
@@ -77,6 +79,17 @@
     }
 
     /**
+     * 鏂板闂嵎鍒嗙被鏍�
+     */
+    @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')")

--
Gitblit v1.9.3