|
@@ -1020,26 +1020,34 @@ public class StudentManageServiceImpl implements StudentManageService {
|
|
|
MapUtil.populateMap(params, queryInfo);
|
|
|
List<Integer> studentIds = new ArrayList<>();
|
|
|
params.put("studentIds",studentIds);
|
|
|
+ PageInfo<Student> pageInfo = new PageInfo<>(queryInfo.getPage(), queryInfo.getRows());
|
|
|
if(queryInfo.getHasMusicCourse() != null){
|
|
|
params.put("groupType","MUSIC");
|
|
|
params.put("hasCourse",queryInfo.getHasMusicCourse());
|
|
|
studentIds = courseScheduleDao.queryHasCourseStudentIds(params);
|
|
|
+ if(studentIds == null || studentIds.size() == 0){
|
|
|
+ return pageInfo;
|
|
|
+ }
|
|
|
}
|
|
|
if(queryInfo.getHasPracticeCourse() != null){
|
|
|
params.put("groupType","PRACTICE");
|
|
|
params.put("hasCourse",queryInfo.getHasPracticeCourse());
|
|
|
params.put("studentIds",studentIds);
|
|
|
studentIds = courseScheduleDao.queryHasCourseStudentIds(params);
|
|
|
+ if(studentIds == null || studentIds.size() == 0){
|
|
|
+ return pageInfo;
|
|
|
+ }
|
|
|
}
|
|
|
if(queryInfo.getHasVipCourse() != null){
|
|
|
params.put("groupType","VIP");
|
|
|
params.put("hasCourse",queryInfo.getHasVipCourse());
|
|
|
params.put("studentIds",studentIds);
|
|
|
studentIds = courseScheduleDao.queryHasCourseStudentIds(params);
|
|
|
+ if(studentIds == null || studentIds.size() == 0){
|
|
|
+ return pageInfo;
|
|
|
+ }
|
|
|
}
|
|
|
params.put("studentIds",studentIds);
|
|
|
-
|
|
|
- PageInfo<Student> pageInfo = new PageInfo<>(queryInfo.getPage(), queryInfo.getRows());
|
|
|
List<Student> dataList = null;
|
|
|
int count = studentDao.countStudent(params);
|
|
|
if (count > 0) {
|