龚焕茏
2024-07-09 fc7baea99b51916d97d77fa1771cba7ed5f2f0ed
src/main/java/com/mindskip/xzs/controller/admin/TagController.java
@@ -9,6 +9,7 @@
import com.mindskip.xzs.service.TagService;
import lombok.Data;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@@ -35,6 +36,9 @@
    @RequestMapping(value = "/page/list", method = RequestMethod.POST)
    public RestResponse<PageInfo<Tag>> pageList(@RequestBody TagVO tag) {
        if (! CollectionUtils.isEmpty(webContext.getAdminDeptIds())) {
            tag.setDeptId(webContext.getAdminDeptIds().get(0));
        }
        PageInfo<Tag> page = tagService.tagPage(tag);
        return RestResponse.ok(page);
    }