| | |
| | | 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; |
| | |
| | | |
| | | @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); |
| | | } |