liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SchemeLocallibraryController.java
@@ -37,9 +37,9 @@
    /**
     * 查询服务方案库列表
     */
    @PreAuthorize("@ss.hasPermi('smartor:schemelibrary:list')")
    @GetMapping("/list")
    public TableDataInfo list(SchemeLocallibrary schemeLocallibrary)
    //@PreAuthorize("@ss.hasPermi('smartor:schemelibrary:list')")
   @PostMapping("/list")
    public TableDataInfo list(@RequestBody SchemeLocallibrary schemeLocallibrary)
    {
        startPage();
        List<SchemeLocallibrary> list = schemeLocallibraryService.selectSchemeLocallibraryList(schemeLocallibrary);
@@ -49,7 +49,7 @@
    /**
     * 导出服务方案库列表
     */
    @PreAuthorize("@ss.hasPermi('smartor:schemelibrary:export')")
    //@PreAuthorize("@ss.hasPermi('smartor:schemelibrary:export')")
    @Log(title = "服务方案库", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, SchemeLocallibrary schemeLocallibrary)
@@ -62,7 +62,7 @@
    /**
     * 获取服务方案库详细信息
     */
    @PreAuthorize("@ss.hasPermi('smartor:schemelibrary:query')")
    //@PreAuthorize("@ss.hasPermi('smartor:schemelibrary:query')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
@@ -72,9 +72,9 @@
    /**
     * 新增服务方案库
     */
    @PreAuthorize("@ss.hasPermi('smartor:schemelibrary:add')")
    //@PreAuthorize("@ss.hasPermi('smartor:schemelibrary:add')")
    @Log(title = "服务方案库", businessType = BusinessType.INSERT)
    @PostMapping
    @PostMapping("/add")
    public AjaxResult add(@RequestBody SchemeLocallibrary schemeLocallibrary)
    {
        return toAjax(schemeLocallibraryService.insertSchemeLocallibrary(schemeLocallibrary));
@@ -83,9 +83,9 @@
    /**
     * 修改服务方案库
     */
    @PreAuthorize("@ss.hasPermi('smartor:schemelibrary:edit')")
    //@PreAuthorize("@ss.hasPermi('smartor:schemelibrary:edit')")
    @Log(title = "服务方案库", businessType = BusinessType.UPDATE)
    @PutMapping
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody SchemeLocallibrary schemeLocallibrary)
    {
        return toAjax(schemeLocallibraryService.updateSchemeLocallibrary(schemeLocallibrary));
@@ -94,9 +94,9 @@
    /**
     * 删除服务方案库
     */
    @PreAuthorize("@ss.hasPermi('smartor:schemelibrary:remove')")
    //@PreAuthorize("@ss.hasPermi('smartor:schemelibrary:remove')")
    @Log(title = "服务方案库", businessType = BusinessType.DELETE)
   @DeleteMapping("/{ids}")
   @GetMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids)
    {
        return toAjax(schemeLocallibraryService.deleteSchemeLocallibraryByIds(ids));