liusheng
2024-07-25 7ef571e23124892654b480c7120fa69a4ae9eb36
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SchemeCategoryController.java
@@ -38,8 +38,8 @@
     * 查询方案分类列表
     */
    @PreAuthorize("@ss.hasPermi('smartor:schemecategory:list')")
    @GetMapping("/list")
    public TableDataInfo list(SchemeCategory schemeCategory)
   @PostMapping("/list")
    public TableDataInfo list(@RequestBody SchemeCategory schemeCategory)
    {
        startPage();
        List<SchemeCategory> list = schemeCategoryService.selectSchemeCategoryList(schemeCategory);
@@ -74,7 +74,7 @@
     */
    @PreAuthorize("@ss.hasPermi('smartor:schemecategory:add')")
    @Log(title = "方案分类", businessType = BusinessType.INSERT)
    @PostMapping
    @PostMapping("/add")
    public AjaxResult add(@RequestBody SchemeCategory schemeCategory)
    {
        return toAjax(schemeCategoryService.insertSchemeCategory(schemeCategory));
@@ -85,7 +85,7 @@
     */
    @PreAuthorize("@ss.hasPermi('smartor:schemecategory:edit')")
    @Log(title = "方案分类", businessType = BusinessType.UPDATE)
    @PutMapping
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody SchemeCategory schemeCategory)
    {
        return toAjax(schemeCategoryService.updateSchemeCategory(schemeCategory));
@@ -96,7 +96,7 @@
     */
    @PreAuthorize("@ss.hasPermi('smartor:schemecategory:remove')")
    @Log(title = "方案分类", businessType = BusinessType.DELETE)
   @DeleteMapping("/{ids}")
   @GetMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids)
    {
        return toAjax(schemeCategoryService.deleteSchemeCategoryByIds(ids));