|
@@ -52,9 +52,6 @@ public class TeacherCourseGroupController extends BaseController {
|
|
|
private SysUserService sysUserService;
|
|
|
|
|
|
@Resource
|
|
|
- private SysMessageService sysMessageService;
|
|
|
-
|
|
|
- @Resource
|
|
|
private AppVersionInfoService appVersionInfoService;
|
|
|
@ApiOperation("直播课详情")
|
|
|
@GetMapping("/queryLiveCourseInfo")
|
|
@@ -156,8 +153,13 @@ public class TeacherCourseGroupController extends BaseController {
|
|
|
@ApiOperation("老师端获取单个课程组")
|
|
|
@PostMapping("/getCourseGroup")
|
|
|
public HttpResponseResult<CourseGroupWrapper.TeacherCourseGroupDto> getCourseGroup(Long courseGroupId) {
|
|
|
+ CourseGroup courseGroup = courseGroupService.getById(courseGroupId);
|
|
|
+ if (courseGroup == null) {
|
|
|
+ return failed("课程组不存在");
|
|
|
+ }
|
|
|
CourseGroupWrapper.TeacherCourseGroupQuery query = new CourseGroupWrapper.TeacherCourseGroupQuery();
|
|
|
query.setCourseGroupId(courseGroupId);
|
|
|
+ query.setCourseType(courseGroup.getType());
|
|
|
IPage<CourseGroupWrapper.TeacherCourseGroupDto> pages = courseGroupService.teacherCourseGroup(PageUtil.getPage(query), query);
|
|
|
return succeed(pages.getRecords().get(0));
|
|
|
}
|