liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/BaseTagController.java
@@ -44,11 +44,11 @@
     * 查询标签列表
     */
    @ApiOperation("查询标签列表")
    @PreAuthorize("@ss.hasPermi('system:tag:list')")
    //@PreAuthorize("@ss.hasPermi('system:tag:list')")
    @PostMapping("/list")
    public TableDataInfo list(@RequestBody BaseTag baseTag) {
        PageUtils.startPageByPost(baseTag.getPageNum(), baseTag.getPageSize());
        if (baseTag.getTagcategoryid() == 0) baseTag.setTagcategoryid(null);
        if (baseTag.getTagcategoryid() == 0 || baseTag.getTagcategoryid() == null) baseTag.setTagcategoryid(null);
        List<BaseTag> list = baseTagService.selectBaseTagList(baseTag);
        return getDataTable(list);
    }
@@ -57,7 +57,7 @@
     * 导出标签列表
     */
    @ApiOperation("导出标签列表")
    @PreAuthorize("@ss.hasPermi('system:tag:export')")
    //@PreAuthorize("@ss.hasPermi('system:tag:export')")
    @Log(title = "标签", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, BaseTag baseTag) {
@@ -71,7 +71,7 @@
     */
    @ApiOperation("获取标签详细信息")
    @ApiImplicitParam(name = "remove", value = "主键ID", dataType = "long", dataTypeClass = Long.class)
    @PreAuthorize("@ss.hasPermi('system:tag:query')")
    //@PreAuthorize("@ss.hasPermi('system:tag:query')")
    @GetMapping(value = "/{tagid}")
    public AjaxResult getInfo(@PathVariable("tagid") Long tagid) {
        return success(baseTagService.selectBaseTagByTagid(tagid));
@@ -81,7 +81,7 @@
     * 新增标签
     */
    @ApiOperation("新增标签")
    @PreAuthorize("@ss.hasPermi('system:tag:add')")
    //@PreAuthorize("@ss.hasPermi('system:tag:add')")
    @Log(title = "标签", businessType = BusinessType.INSERT)
    @PostMapping("/add")
    public AjaxResult add(@RequestBody BaseTag baseTag) {
@@ -92,7 +92,7 @@
     * 修改标签
     */
    @ApiOperation("修改标签")
    @PreAuthorize("@ss.hasPermi('system:tag:edit')")
    //@PreAuthorize("@ss.hasPermi('system:tag:edit')")
    @Log(title = "标签", businessType = BusinessType.UPDATE)
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody BaseTag baseTag) {
@@ -104,7 +104,7 @@
     */
    @ApiOperation("删除标签")
    @ApiImplicitParam(name = "remove", value = "主键ID", dataType = "long", dataTypeClass = Array.class)
    @PreAuthorize("@ss.hasPermi('system:tag:remove')")
    //@PreAuthorize("@ss.hasPermi('system:tag:remove')")
    @Log(title = "标签", businessType = BusinessType.DELETE)
    @GetMapping("/remove/{tagids}")
    public AjaxResult remove(@PathVariable Long[] tagids) {