|
@@ -78,9 +78,12 @@ public class CourseGroupController extends BaseController {
|
|
|
public HttpResponseResult<List<LiveCourseGroupPlanVo>> student(@ApiParam(value = "课程组编号ID", required = true)
|
|
|
@PathVariable("courseGroupId") Long courseGroupId) {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- if (sysUser == null) {
|
|
|
+ if (sysUser == null || sysUser.getId() == null) {
|
|
|
return failed("用户信息获取失败");
|
|
|
}
|
|
|
+ if (courseGroupId == null) {
|
|
|
+ return failed("课程组id不能为空");
|
|
|
+ }
|
|
|
|
|
|
List<LiveCourseGroupPlanVo> LiveCourseGroupPlanVoList = courseGroupService.selectAdminLivePlan(courseGroupId);
|
|
|
return succeed(LiveCourseGroupPlanVoList);
|