liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/HeLibraryController.java
@@ -37,7 +37,7 @@
     * 查询宣教资料库列表
     */
    @ApiOperation("查询宣教资料库列表")
    @PreAuthorize("@ss.hasPermi('system:library:list')")
    //@PreAuthorize("@ss.hasPermi('system:library:list')")
    @PostMapping("/list")
    public TableDataInfo list(@RequestBody HeLibrary heLibrary) {
        startPage();
@@ -48,7 +48,7 @@
    /**
     * 导出宣教资料库列表
     */
    @PreAuthorize("@ss.hasPermi('system:library:export')")
    //@PreAuthorize("@ss.hasPermi('system:library:export')")
    @Log(title = "宣教资料库", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, HeLibrary heLibrary) {
@@ -60,7 +60,7 @@
    /**
     * 获取宣教资料库详细信息
     */
    @PreAuthorize("@ss.hasPermi('system:library:query')")
    //@PreAuthorize("@ss.hasPermi('system:library:query')")
    @GetMapping(value = "/getInfo/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        return success(heLibraryService.selectHeLibraryById(id));
@@ -69,7 +69,7 @@
    /**
     * 新增宣教资料库
     */
    @PreAuthorize("@ss.hasPermi('system:library:add')")
    //@PreAuthorize("@ss.hasPermi('system:library:add')")
    @Log(title = "宣教资料库", businessType = BusinessType.INSERT)
    @PostMapping("/add")
    public AjaxResult add(@RequestBody HeLibrary heLibrary) {
@@ -79,7 +79,7 @@
    /**
     * 修改宣教资料库
     */
    @PreAuthorize("@ss.hasPermi('system:library:edit')")
    //@PreAuthorize("@ss.hasPermi('system:library:edit')")
    @Log(title = "宣教资料库", businessType = BusinessType.UPDATE)
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody HeLibrary heLibrary) {
@@ -90,7 +90,7 @@
     * 删除宣教资料库
     */
    @ApiOperation("删除宣教资料库")
    @PreAuthorize("@ss.hasPermi('system:library:remove')")
    //@PreAuthorize("@ss.hasPermi('system:library:remove')")
    @Log(title = "宣教资料库", businessType = BusinessType.DELETE)
    @GetMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids) {
@@ -101,7 +101,7 @@
     * 新增或修改宣教详情
     */
    @ApiOperation("新增或修改宣教详情")
    @PreAuthorize("@ss.hasPermi('system:script:list')")
    //@PreAuthorize("@ss.hasPermi('system:script:list')")
    @PostMapping("/saveOrUpdateHeLibrary")
    public AjaxResult saveOrUpdateHeLibrary(@RequestBody HeLibraryVO heLibraryVO) {
        if (ObjectUtils.isEmpty(heLibraryVO)) {