liusheng
2024-08-28 bedd0a1cef215538df64470df6b8d4a022189136
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibScriptCategoryController.java
@@ -11,11 +11,13 @@
import com.smartor.service.ISvyLibScriptCategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.beanutils.ConvertUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.Arrays;
import java.util.List;
/**
@@ -38,7 +40,7 @@
    @PreAuthorize("@ss.hasPermi('smartor:category:list')")
    @PostMapping("/list")
    public TableDataInfo list(@RequestBody SvyLibScriptCategory svyLibScriptCategory) {
        startPage();
//        startPage();
        List<SvyLibScriptCategoryVO> list = svyLibScriptCategoryService.selectSvyLibScriptCategoryList(svyLibScriptCategory);
        return getDataTable(list);
    }
@@ -92,8 +94,9 @@
    @PreAuthorize("@ss.hasPermi('smartor:category:remove')")
    @Log(title = "问卷题目分类", businessType = BusinessType.DELETE)
    @GetMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids) {
        return toAjax(svyLibScriptCategoryService.deleteSvyLibScriptCategoryByIds(ids));
    public AjaxResult remove(@PathVariable String ids) {
        Long[] idArray = (Long[]) ConvertUtils.convert(ids.split(","), Long.class);
        return toAjax(svyLibScriptCategoryService.deleteSvyLibScriptCategoryByIds(idArray));
    }
    /**