parent
730f27c55e
commit
998d9aee35
|
|
@ -60,7 +60,8 @@ public class PgStudentServiceImpl implements IPgStudentService {
|
|||
@Override
|
||||
public TableDataInfo<StudentVo> selectPageList(PgStudent student, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<PgStudent> lqw = buildQueryWrapper(student);
|
||||
Page<PgStudent> page = baseMapper.selectPage(pageQuery.build(), lqw);
|
||||
// 使用带数据权限的查询方法
|
||||
Page<PgStudent> page = baseMapper.selectPageStudentList(pageQuery.build(), lqw);
|
||||
|
||||
// 转换为 VO 并填充关联数据
|
||||
List<StudentVo> voList = convertToVoList(page.getRecords());
|
||||
|
|
@ -72,7 +73,8 @@ public class PgStudentServiceImpl implements IPgStudentService {
|
|||
|
||||
@Override
|
||||
public List<PgStudent> selectList(PgStudent student) {
|
||||
return baseMapper.selectList(buildQueryWrapper(student));
|
||||
// 使用带数据权限的查询方法
|
||||
return baseMapper.selectStudentList(buildQueryWrapper(student));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -250,7 +252,8 @@ public class PgStudentServiceImpl implements IPgStudentService {
|
|||
lqw.eq(schoolId != null, PgStudent::getSchoolId, schoolId);
|
||||
lqw.orderByDesc(PgStudent::getCreateTime);
|
||||
|
||||
Page<PgStudent> page = baseMapper.selectPage(pageQuery.build(), lqw);
|
||||
// 使用带数据权限的查询方法
|
||||
Page<PgStudent> page = baseMapper.selectPageStudentList(pageQuery.build(), lqw);
|
||||
// 转换为 VO,填充学校、年级、班级、会员信息
|
||||
List<StudentVo> voList = convertToVoList(page.getRecords());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue