|
|
@ -30,6 +30,8 @@ import org.springframework.web.servlet.ModelAndView;
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static cn.jlw.util.CacheUserUtil.getStudent;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 开课关联学生 课程开课-关联-学生 接口
|
|
|
|
* 开课关联学生 课程开课-关联-学生 接口
|
|
|
|
* 切记不要对非线程安全的静态变量进行写操作
|
|
|
|
* 切记不要对非线程安全的静态变量进行写操作
|
|
|
@ -57,6 +59,9 @@ public class TeacherOpenCourseMergeStudentController{
|
|
|
|
return JsonResult.failMessage("请登录后再操作");
|
|
|
|
return JsonResult.failMessage("请登录后再操作");
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
PageQuery page = condition.getPageQuery();
|
|
|
|
PageQuery page = condition.getPageQuery();
|
|
|
|
|
|
|
|
if (coreUser.isStudent()) {
|
|
|
|
|
|
|
|
condition.setStudentId(getStudent().getStudentId());
|
|
|
|
|
|
|
|
}
|
|
|
|
teacherOpenCourseMergeStudentService.queryByConditionQuery(page);
|
|
|
|
teacherOpenCourseMergeStudentService.queryByConditionQuery(page);
|
|
|
|
return JsonResult.success(page);
|
|
|
|
return JsonResult.success(page);
|
|
|
|
}
|
|
|
|
}
|
|
|
|