feat(oa): 新增项目进度步骤分页查询接口
- 在 IOaProjectScheduleStepService 接口中新增 queryPageListPage 方法定义 - 在 OaProjectScheduleStepController 控制器中添加 /listPage GET 接口- 在 OaProjectScheduleStepServiceImpl 实现类中实现 queryPageListPage 方法 - 调整代码格式,增加空行以提升可读性
This commit is contained in:
@@ -47,6 +47,13 @@ public class OaProjectScheduleStepController extends BaseController {
|
|||||||
public TableDataInfo<OaProjectScheduleStepVo> list(OaProjectScheduleStepBo bo, PageQuery pageQuery) {
|
public TableDataInfo<OaProjectScheduleStepVo> list(OaProjectScheduleStepBo bo, PageQuery pageQuery) {
|
||||||
return iOaProjectScheduleStepService.queryPageList(bo, pageQuery);
|
return iOaProjectScheduleStepService.queryPageList(bo, pageQuery);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 查询项目进度步骤跟踪列表
|
||||||
|
*/
|
||||||
|
@GetMapping("/listPage")
|
||||||
|
public TableDataInfo<OaProjectScheduleStepVo> listPage(OaProjectScheduleStepBo bo, PageQuery pageQuery) {
|
||||||
|
return iOaProjectScheduleStepService.queryPageListPage(bo, pageQuery);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 导出项目进度步骤跟踪列表
|
* 导出项目进度步骤跟踪列表
|
||||||
|
|||||||
@@ -65,4 +65,5 @@ public interface IOaProjectScheduleStepService{
|
|||||||
|
|
||||||
void batchInsertNodes(List<NodeDTO> nodeList, Long scheduleId);
|
void batchInsertNodes(List<NodeDTO> nodeList, Long scheduleId);
|
||||||
|
|
||||||
|
TableDataInfo<OaProjectScheduleStepVo> queryPageListPage(OaProjectScheduleStepBo bo, PageQuery pageQuery);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,6 +60,12 @@ public class OaProjectScheduleStepServiceImpl implements IOaProjectScheduleStepS
|
|||||||
Page<OaProjectScheduleStepVo> result = baseMapper.selectVoPagePlus(pageQuery.build(), lqw,LoginHelper.getUserId());
|
Page<OaProjectScheduleStepVo> result = baseMapper.selectVoPagePlus(pageQuery.build(), lqw,LoginHelper.getUserId());
|
||||||
return TableDataInfo.build(result);
|
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);
|
baseMapper.saveBatch(entities);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user