| | |
| | | import com.ycl.common.enums.business.ProjectTypeEnum; |
| | | import com.ycl.common.utils.DateUtils; |
| | | import com.ycl.domain.entity.Plan; |
| | | import com.ycl.domain.entity.ProjectPlanRecord; |
| | | import com.ycl.domain.vo.ProjectPlanResponseVO; |
| | | import com.ycl.domain.vo.ProjetPlanRecordItem; |
| | | import com.ycl.framework.utils.PageUtil; |
| | |
| | | @Override |
| | | public Result page(PlanQuery query) { |
| | | IPage<ProjectPlanResponseVO> page = PageUtil.getPage(query, ProjectPlanResponseVO.class); |
| | | baseMapper.getPage(page, query); |
| | | baseMapper.getPage(query, page); |
| | | // 对分页后的属性进行处理 |
| | | List<ProjectPlanResponseVO> records = page.getRecords(); |
| | | for (ProjectPlanResponseVO record : records) { |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result detail(Integer id) { |
| | | public Result detail(Long id) { |
| | | PlanVO vo = baseMapper.getById(id); |
| | | Assert.notNull(vo, "记录不存在"); |
| | | return Result.ok().data(vo); |