|
|
|
@ -66,6 +66,9 @@ public class TeacherOpenCourseScheduleSessionController{
|
|
|
|
|
if(null == coreUser){
|
|
|
|
|
return JsonResult.failMessage("请登录后再操作");
|
|
|
|
|
}else{
|
|
|
|
|
if (!coreUser.isAdmin()) {
|
|
|
|
|
condition.setOrgId(condition.getOrgId());
|
|
|
|
|
}
|
|
|
|
|
PageQuery page = condition.getPageQuery();
|
|
|
|
|
teacherOpenCourseScheduleSessionService.queryByConditionQuery(page);
|
|
|
|
|
return JsonResult.success(page);
|
|
|
|
@ -87,11 +90,14 @@ public class TeacherOpenCourseScheduleSessionController{
|
|
|
|
|
|
|
|
|
|
@GetMapping(API + "/getList.do")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public JsonResult<List<TeacherOpenCourseScheduleSession>>getList(TeacherOpenCourseScheduleSessionQuery param,@SCoreUser CoreUser coreUser) {
|
|
|
|
|
public JsonResult<List<TeacherOpenCourseScheduleSession>>getList(TeacherOpenCourseScheduleSessionQuery condition,@SCoreUser CoreUser coreUser) {
|
|
|
|
|
if(null == coreUser){
|
|
|
|
|
return JsonResult.failMessage("请登录后再操作");
|
|
|
|
|
}else{
|
|
|
|
|
List<TeacherOpenCourseScheduleSession>list = teacherOpenCourseScheduleSessionService.getValuesByQuery(param);
|
|
|
|
|
if (!coreUser.isAdmin()) {
|
|
|
|
|
condition.setOrgId(condition.getOrgId());
|
|
|
|
|
}
|
|
|
|
|
List<TeacherOpenCourseScheduleSession>list = teacherOpenCourseScheduleSessionService.getValuesByQuery(condition);
|
|
|
|
|
return JsonResult.success(list);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -180,7 +186,10 @@ public class TeacherOpenCourseScheduleSessionController{
|
|
|
|
|
*/
|
|
|
|
|
@PostMapping(API + "/listGroup.do")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public JsonResult<PageQuery> listGroup(TeacherOpenCourseScheduleSessionQuery condition){
|
|
|
|
|
public JsonResult<PageQuery> listGroup(TeacherOpenCourseScheduleSessionQuery condition, @SCoreUser CoreUser coreUser){
|
|
|
|
|
if (!coreUser.isAdmin()) {
|
|
|
|
|
condition.setOrgId(condition.getOrgId());
|
|
|
|
|
}
|
|
|
|
|
PageQuery page = condition.getPageQuery();
|
|
|
|
|
teacherOpenCourseScheduleSessionService.queryByConditionGroup(page);
|
|
|
|
|
return JsonResult.success(page);
|
|
|
|
@ -192,7 +201,10 @@ public class TeacherOpenCourseScheduleSessionController{
|
|
|
|
|
@Function("teacherOpenCourseScheduleSession.query")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
@Deprecated
|
|
|
|
|
public JsonResult<PageQuery> list(TeacherOpenCourseScheduleSessionQuery condition){
|
|
|
|
|
public JsonResult<PageQuery> list(TeacherOpenCourseScheduleSessionQuery condition, @SCoreUser CoreUser coreUser){
|
|
|
|
|
if (!coreUser.isAdmin()) {
|
|
|
|
|
condition.setOrgId(condition.getOrgId());
|
|
|
|
|
}
|
|
|
|
|
PageQuery page = condition.getPageQuery();
|
|
|
|
|
teacherOpenCourseScheduleSessionService.queryByCondition(page);
|
|
|
|
|
return JsonResult.success(page);
|
|
|
|
@ -276,8 +288,11 @@ public class TeacherOpenCourseScheduleSessionController{
|
|
|
|
|
@GetMapping(MODEL + "/getValues.json")
|
|
|
|
|
@Function("teacherOpenCourseScheduleSession.query")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public JsonResult<List<TeacherOpenCourseScheduleSession>>getValues(TeacherOpenCourseScheduleSessionQuery param) {
|
|
|
|
|
List<TeacherOpenCourseScheduleSession>list = teacherOpenCourseScheduleSessionService.getValuesByQuery(param);
|
|
|
|
|
public JsonResult<List<TeacherOpenCourseScheduleSession>>getValues(TeacherOpenCourseScheduleSessionQuery condition, @SCoreUser CoreUser coreUser) {
|
|
|
|
|
if (!coreUser.isAdmin()) {
|
|
|
|
|
condition.setOrgId(condition.getOrgId());
|
|
|
|
|
}
|
|
|
|
|
List<TeacherOpenCourseScheduleSession>list = teacherOpenCourseScheduleSessionService.getValuesByQuery(condition);
|
|
|
|
|
return JsonResult.success(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|