|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.ibeetl.jlw.web;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
|
import cn.jlw.Interceptor.SCoreUser;
|
|
|
|
|
import cn.jlw.Interceptor.TTeacher;
|
|
|
|
@ -8,10 +9,9 @@ import com.ibeetl.admin.core.annotation.Function;
|
|
|
|
|
import com.ibeetl.admin.core.entity.CoreUser;
|
|
|
|
|
import com.ibeetl.admin.core.file.FileService;
|
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
|
import com.ibeetl.jlw.entity.Teacher;
|
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseScheduleSession;
|
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseScheduleSessionClass;
|
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseScheduleSessionOptions;
|
|
|
|
|
import com.ibeetl.jlw.dao.TeacherOpenCourseDao;
|
|
|
|
|
import com.ibeetl.jlw.dao.TeacherOpenCourseScheduleSessionDao;
|
|
|
|
|
import com.ibeetl.jlw.entity.*;
|
|
|
|
|
import com.ibeetl.jlw.service.*;
|
|
|
|
|
import com.ibeetl.jlw.web.query.TeacherOpenCourseQuery;
|
|
|
|
|
import com.ibeetl.jlw.web.query.TeacherOpenCourseScheduleSessionClassQuery;
|
|
|
|
@ -48,6 +48,8 @@ public class TeacherOpenCourseScheduleSessionController{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired private TeacherOpenCourseScheduleSessionService teacherOpenCourseScheduleSessionService;
|
|
|
|
|
|
|
|
|
|
@Autowired private TeacherOpenCourseDao teacherOpenCourseDao;
|
|
|
|
|
@Autowired private TeacherOpenCourseScheduleSessionTagService teacherOpenCourseScheduleSessionTagService;
|
|
|
|
|
@Autowired private TeacherOpenCourseScheduleSessionClassService teacherOpenCourseScheduleSessionClassService;
|
|
|
|
|
@Autowired private TeacherOpenCourseScheduleSessionSnapService teacherOpenCourseScheduleSessionSnapService;
|
|
|
|
@ -392,6 +394,20 @@ public class TeacherOpenCourseScheduleSessionController{
|
|
|
|
|
}
|
|
|
|
|
teacherOpenCourseScheduleSessionService.queryByConditionGroup(page);
|
|
|
|
|
teacherOpenCourseScheduleSessionSnapService.fullSessionTagList(page.getList());
|
|
|
|
|
if (coreUser.isUniAdmin()){
|
|
|
|
|
page.getList().forEach(item ->{
|
|
|
|
|
TeacherOpenCourseScheduleSession list = (TeacherOpenCourseScheduleSession) item;
|
|
|
|
|
if (ObjectUtil.isEmpty(list.getTeacherOpenCourseId())){
|
|
|
|
|
List<TeacherOpenCourse> select = teacherOpenCourseDao.getSQLManager()
|
|
|
|
|
.lambdaQuery(TeacherOpenCourse.class)
|
|
|
|
|
.andEq(TeacherOpenCourse::getTeacherOpenCourseId, list.getCourseInfoId())
|
|
|
|
|
.select();
|
|
|
|
|
if (!CollectionUtil.isEmpty(select)){
|
|
|
|
|
list.setCourseInfoIdText(select.get(0).getTeacherOpenCourseTitle());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
return JsonResult.success(page);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|