| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.domain.entity.Plan; |
| | | import com.ycl.domain.vo.ProjectPlanResponseVO; |
| | | import com.ycl.framework.utils.PageUtil; |
| | | import com.ycl.mapper.PlanMapper; |
| | | import com.ycl.service.PlanService; |
| | |
| | | */ |
| | | @Override |
| | | public Result page(PlanQuery query) { |
| | | IPage<PlanVO> page = PageUtil.getPage(query, PlanVO.class); |
| | | IPage<ProjectPlanResponseVO> page = PageUtil.getPage(query, ProjectPlanResponseVO.class); |
| | | baseMapper.getPage(page, query); |
| | | return Result.ok().data(page.getRecords()).total(page.getTotal()); |
| | | } |