|
@@ -137,7 +137,7 @@ public class TeacherCourseScheduleController extends BaseController {
|
|
|
@PostMapping("/getRecentCourseSchedule")
|
|
|
public HttpResponseResult<CourseScheduleDto> getRecentCourseSchedule(Long courseId){
|
|
|
CourseScheduleDto courseScheduleDto = scheduleService.getRecentCourseSchedule(sysUserService.getUserId(), courseId);
|
|
|
- if(courseScheduleDto.getTeachMode() == TeachModeEnum.OFFLINE && courseScheduleDto.getStatus() != CourseStatusEnum.UNDERWAY
|
|
|
+ if(courseScheduleDto != null && courseScheduleDto.getTeachMode() == TeachModeEnum.OFFLINE && courseScheduleDto.getStatus() != CourseStatusEnum.UNDERWAY
|
|
|
&& StringUtils.isNotEmpty(courseScheduleDto.getCoursewareDetailId())){
|
|
|
//获取课件详情列表
|
|
|
R<CbsLessonCoursewareDetailWrapper.LessonCoursewareDetail> voR = coursewareFeignService.lessonCoursewareDetailDetail(Long.parseLong(courseScheduleDto.getCoursewareDetailId()));
|