liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/HeLocallibraryController.java
@@ -23,7 +23,7 @@
/**
 * 宣教库Controller
 *
 *
 * @author smartor
 * @date 2023-03-04
 */
@@ -37,9 +37,9 @@
    /**
     * 查询宣教库列表
     */
    @PreAuthorize("@ss.hasPermi('smartor:helibrary:list')")
    @GetMapping("/list")
    public TableDataInfo list(HeLocallibrary heLocallibrary)
    //@PreAuthorize("@ss.hasPermi('smartor:helibrary:list')")
   @PostMapping("/list")
    public TableDataInfo list(@RequestBody HeLocallibrary heLocallibrary)
    {
        startPage();
        List<HeLocallibrary> list = heLocallibraryService.selectHeLocallibraryList(heLocallibrary);
@@ -49,7 +49,7 @@
    /**
     * 导出宣教库列表
     */
    @PreAuthorize("@ss.hasPermi('smartor:helibrary:export')")
    //@PreAuthorize("@ss.hasPermi('smartor:helibrary:export')")
    @Log(title = "宣教库", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, HeLocallibrary heLocallibrary)
@@ -62,7 +62,7 @@
    /**
     * 获取宣教库详细信息
     */
    @PreAuthorize("@ss.hasPermi('smartor:helibrary:query')")
    //@PreAuthorize("@ss.hasPermi('smartor:helibrary:query')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
@@ -72,9 +72,9 @@
    /**
     * 新增宣教库
     */
    @PreAuthorize("@ss.hasPermi('smartor:helibrary:add')")
    //@PreAuthorize("@ss.hasPermi('smartor:helibrary:add')")
    @Log(title = "宣教库", businessType = BusinessType.INSERT)
    @PostMapping
    @PostMapping("add")
    public AjaxResult add(@RequestBody HeLocallibrary heLocallibrary)
    {
        return toAjax(heLocallibraryService.insertHeLocallibrary(heLocallibrary));
@@ -83,9 +83,9 @@
    /**
     * 修改宣教库
     */
    @PreAuthorize("@ss.hasPermi('smartor:helibrary:edit')")
    //@PreAuthorize("@ss.hasPermi('smartor:helibrary:edit')")
    @Log(title = "宣教库", businessType = BusinessType.UPDATE)
    @PutMapping
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody HeLocallibrary heLocallibrary)
    {
        return toAjax(heLocallibraryService.updateHeLocallibrary(heLocallibrary));
@@ -94,9 +94,9 @@
    /**
     * 删除宣教库
     */
    @PreAuthorize("@ss.hasPermi('smartor:helibrary:remove')")
    //@PreAuthorize("@ss.hasPermi('smartor:helibrary:remove')")
    @Log(title = "宣教库", businessType = BusinessType.DELETE)
   @DeleteMapping("/{ids}")
   @GetMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids)
    {
        return toAjax(heLocallibraryService.deleteHeLocallibraryByIds(ids));