|
@@ -2888,7 +2888,7 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
|
|
List<LiveCourseInfoVo.PlanVo> planVos = coursePlanService.queryCoursePlanByGroupId(courseGroup.getId());
|
|
List<LiveCourseInfoVo.PlanVo> planVos = coursePlanService.queryCoursePlanByGroupId(courseGroup.getId());
|
|
Map<Long, LiveCourseInfoVo.PlanVo> planMap = new HashMap<>();
|
|
Map<Long, LiveCourseInfoVo.PlanVo> planMap = new HashMap<>();
|
|
if(CollectionUtils.isNotEmpty(planVos)){
|
|
if(CollectionUtils.isNotEmpty(planVos)){
|
|
- planMap = planVos.stream().collect(Collectors.toMap(LiveCourseInfoVo.PlanVo::getId, Function.identity()));
|
|
|
|
|
|
+ planMap = planVos.stream().collect(Collectors.toMap(LiveCourseInfoVo.PlanVo::getCourseId, Function.identity()));
|
|
}
|
|
}
|
|
for (CourseSchedule courseSchedule : courseSchedules) {
|
|
for (CourseSchedule courseSchedule : courseSchedules) {
|
|
CourseScheduleWrapper.MyCourseVo courseVo = new CourseScheduleWrapper.MyCourseVo();
|
|
CourseScheduleWrapper.MyCourseVo courseVo = new CourseScheduleWrapper.MyCourseVo();
|
|
@@ -2990,6 +2990,11 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
|
|
Map<Long, com.yonge.cooleshow.biz.dal.entity.SysUser> userMap = sysUserService.getMapByIds(teacherIds);
|
|
Map<Long, com.yonge.cooleshow.biz.dal.entity.SysUser> userMap = sysUserService.getMapByIds(teacherIds);
|
|
List<CourseScheduleWrapper.StudentCourseList> courseVos = Lists.newArrayList();
|
|
List<CourseScheduleWrapper.StudentCourseList> courseVos = Lists.newArrayList();
|
|
CourseGroup courseGroup = courseGroupService.lambdaQuery().eq(CourseGroup::getId, query.getCourseGroupId()).one();
|
|
CourseGroup courseGroup = courseGroupService.lambdaQuery().eq(CourseGroup::getId, query.getCourseGroupId()).one();
|
|
|
|
+ List<LiveCourseInfoVo.PlanVo> planVos = coursePlanService.queryCoursePlanByGroupId(courseGroup.getId());
|
|
|
|
+ Map<Long, LiveCourseInfoVo.PlanVo> planMap = new HashMap<>();
|
|
|
|
+ if(CollectionUtils.isNotEmpty(planVos)){
|
|
|
|
+ planMap = planVos.stream().collect(Collectors.toMap(LiveCourseInfoVo.PlanVo::getCourseId, Function.identity()));
|
|
|
|
+ }
|
|
Subject subject = subjectService.get(courseGroup.getSubjectId());
|
|
Subject subject = subjectService.get(courseGroup.getSubjectId());
|
|
for (CourseSchedule courseSchedule : courseSchedules) {
|
|
for (CourseSchedule courseSchedule : courseSchedules) {
|
|
CourseScheduleWrapper.StudentCourseList courseVo = new CourseScheduleWrapper.StudentCourseList();
|
|
CourseScheduleWrapper.StudentCourseList courseVo = new CourseScheduleWrapper.StudentCourseList();
|
|
@@ -3002,6 +3007,10 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
|
|
courseVo.setCourseGroupName(courseGroup.getName() + "-第" + courseSchedule.getClassNum() + "课");
|
|
courseVo.setCourseGroupName(courseGroup.getName() + "-第" + courseSchedule.getClassNum() + "课");
|
|
courseVo.setSubjectId(courseGroup.getSubjectId());
|
|
courseVo.setSubjectId(courseGroup.getSubjectId());
|
|
courseVo.setSubjectName(subject.getName());
|
|
courseVo.setSubjectName(subject.getName());
|
|
|
|
+ LiveCourseInfoVo.PlanVo planVo = planMap.get(courseSchedule.getId());
|
|
|
|
+ if(planVo != null){
|
|
|
|
+ courseVo.setCoursePlan(planVo.getPlan());
|
|
|
|
+ }
|
|
if(query.getAttendanceStatus() == null){
|
|
if(query.getAttendanceStatus() == null){
|
|
courseVo.setAttendanceStatus(attendanceMap.getOrDefault(courseSchedule.getId(),false));
|
|
courseVo.setAttendanceStatus(attendanceMap.getOrDefault(courseSchedule.getId(),false));
|
|
}else {
|
|
}else {
|