feat(oa): 新增项目进度步骤分页查询接口

- 在 IOaProjectScheduleStepService 接口中新增 queryPageListPage 方法定义
- 在 OaProjectScheduleStepController 控制器中添加 /listPage GET 接口- 在 OaProjectScheduleStepServiceImpl 实现类中实现 queryPageListPage 方法
- 调整代码格式,增加空行以提升可读性
This commit is contained in:
2025-10-21 17:08:09 +08:00
parent 2da9f92395
commit bb0457635c
3 changed files with 16 additions and 0 deletions

View File

@@ -47,6 +47,13 @@ public class OaProjectScheduleStepController extends BaseController {
public TableDataInfo<OaProjectScheduleStepVo> list(OaProjectScheduleStepBo bo, PageQuery pageQuery) {
return iOaProjectScheduleStepService.queryPageList(bo, pageQuery);
}
/**
* 查询项目进度步骤跟踪列表
*/
@GetMapping("/listPage")
public TableDataInfo<OaProjectScheduleStepVo> listPage(OaProjectScheduleStepBo bo, PageQuery pageQuery) {
return iOaProjectScheduleStepService.queryPageListPage(bo, pageQuery);
}
/**
* 导出项目进度步骤跟踪列表

View File

@@ -65,4 +65,5 @@ public interface IOaProjectScheduleStepService{
void batchInsertNodes(List<NodeDTO> nodeList, Long scheduleId);
TableDataInfo<OaProjectScheduleStepVo> queryPageListPage(OaProjectScheduleStepBo bo, PageQuery pageQuery);
}

View File

@@ -60,6 +60,12 @@ public class OaProjectScheduleStepServiceImpl implements IOaProjectScheduleStepS
Page<OaProjectScheduleStepVo> result = baseMapper.selectVoPagePlus(pageQuery.build(), lqw,LoginHelper.getUserId());
return TableDataInfo.build(result);
}
@Override
public TableDataInfo<OaProjectScheduleStepVo> queryPageListPage(OaProjectScheduleStepBo bo, PageQuery pageQuery) {
QueryWrapper<OaProjectScheduleStep> lqw = buildQueryWrapper(bo);
Page<OaProjectScheduleStepVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
return TableDataInfo.build(result);
}
/**
* 查询项目进度步骤跟踪列表
@@ -229,4 +235,6 @@ public class OaProjectScheduleStepServiceImpl implements IOaProjectScheduleStepS
// 批量插入数据库
baseMapper.saveBatch(entities);
}
}