| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.mapper.TDeptMapper; |
| | | import com.ruoyi.system.mapper.TSysConfigMapper; |
| | | import com.ruoyi.system.model.TDept; |
| | | import com.ruoyi.system.model.TSysConfig; |
| | | import com.ruoyi.system.query.DeptListQuery; |
| | | import com.ruoyi.system.service.TDeptService; |
| | | import com.ruoyi.system.service.TSysConfigService; |
| | | import com.ruoyi.system.vo.system.DeptListVO; |
| | | import com.ruoyi.system.vo.system.KnowledgeListVO; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Service |
| | | public class TDeptServiceImpl extends ServiceImpl<TDeptMapper, TDept> implements TDeptService { |
| | | |
| | | @Override |
| | | public PageInfo<DeptListVO> pageList(DeptListQuery query) { |
| | | PageInfo<DeptListVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<DeptListVO> list = this.baseMapper.pageList(query,pageInfo); |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |
| | | } |
| | | } |