|
@@ -146,19 +146,22 @@ public class StudentManageServiceImpl implements StudentManageService {
|
|
|
Map<Integer,StudentListCourseDto> StudentListCourseDtoMap = studentListCourseDtoList.stream().collect(Collectors.toMap(StudentListCourseDto::getUserId, studentListCourseDto -> studentListCourseDto));
|
|
|
|
|
|
StudentListCourseDto studentListCourseDto = null;
|
|
|
- for(StudentManageListDto dto : dataList){
|
|
|
+ for (StudentManageListDto dto : dataList) {
|
|
|
studentListCourseDto = StudentListCourseDtoMap.get(dto.getUserId());
|
|
|
- if(studentListCourseDto != null){
|
|
|
- if(studentListCourseDto.getRemainCourseNum() > 0){
|
|
|
+ if (studentListCourseDto != null) {
|
|
|
+ if (studentListCourseDto.getRemainCourseNum() > 0) {
|
|
|
dto.setHasCourse(YesOrNoEnum.YES);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
dto.setHasCourse(YesOrNoEnum.NO);
|
|
|
}
|
|
|
- if(studentListCourseDto.getRemainPracticeNum() > 0){
|
|
|
+ if (studentListCourseDto.getRemainPracticeNum() > 0) {
|
|
|
dto.setHasPracticeCourse(YesOrNoEnum.YES);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
dto.setHasPracticeCourse(YesOrNoEnum.NO);
|
|
|
}
|
|
|
+ } else {
|
|
|
+ dto.setHasCourse(YesOrNoEnum.NO);
|
|
|
+ dto.setHasPracticeCourse(YesOrNoEnum.NO);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -182,6 +185,7 @@ public class StudentManageServiceImpl implements StudentManageService {
|
|
|
e.setVipGroupStatus(vipGroupStatus.get(e.getUserId()));
|
|
|
});
|
|
|
}
|
|
|
+ pageInfo.setRows(dataList);
|
|
|
return pageInfo;
|
|
|
}
|
|
|
|