|
|
@ -20,10 +20,7 @@ import com.ibeetl.admin.core.util.holidays.Holidays;
|
|
|
|
import com.ibeetl.admin.core.util.holidays.HolidaysUtils;
|
|
|
|
import com.ibeetl.admin.core.util.holidays.HolidaysUtils;
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
import com.ibeetl.admin.core.web.JsonReturnCode;
|
|
|
|
import com.ibeetl.admin.core.web.JsonReturnCode;
|
|
|
|
import com.ibeetl.jlw.dao.TeacherOpenCourseScheduleSessionClassDao;
|
|
|
|
import com.ibeetl.jlw.dao.*;
|
|
|
|
import com.ibeetl.jlw.dao.TeacherOpenCourseScheduleSessionDao;
|
|
|
|
|
|
|
|
import com.ibeetl.jlw.dao.TeacherOpenCourseScheduleSessionSnapDao;
|
|
|
|
|
|
|
|
import com.ibeetl.jlw.dao.TeacherOpenCourseScheduleSessionTagDao;
|
|
|
|
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseScheduleSession;
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseScheduleSession;
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseScheduleSessionClass;
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseScheduleSessionClass;
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseScheduleSessionOptions;
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseScheduleSessionOptions;
|
|
|
@ -67,6 +64,7 @@ import static java.util.stream.Collectors.toMap;
|
|
|
|
public class TeacherOpenCourseScheduleSessionService extends CoreBaseService<TeacherOpenCourseScheduleSession> implements DeleteResourcesBy{
|
|
|
|
public class TeacherOpenCourseScheduleSessionService extends CoreBaseService<TeacherOpenCourseScheduleSession> implements DeleteResourcesBy{
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired private TeacherOpenCourseScheduleSessionDao teacherOpenCourseScheduleSessionDao;
|
|
|
|
@Autowired private TeacherOpenCourseScheduleSessionDao teacherOpenCourseScheduleSessionDao;
|
|
|
|
|
|
|
|
@Autowired private TeacherOpenCourseMergeScheduleSessionDao teacherOpenCourseMergeScheduleSessionDao;
|
|
|
|
|
|
|
|
|
|
|
|
@Lazy
|
|
|
|
@Lazy
|
|
|
|
@Autowired TeacherOpenCourseScheduleSessionService teacherOpenCourseScheduleSessionService;
|
|
|
|
@Autowired TeacherOpenCourseScheduleSessionService teacherOpenCourseScheduleSessionService;
|
|
|
@ -132,6 +130,7 @@ public class TeacherOpenCourseScheduleSessionService extends CoreBaseService<Tea
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
teacherOpenCourseScheduleSessionDao.deleteByIds(ids);
|
|
|
|
teacherOpenCourseScheduleSessionDao.deleteByIds(ids);
|
|
|
|
teacherOpenCourseScheduleSessionSnapDao.deleteTeacherOpenCourseScheduleSessionBySessionIds(ids);
|
|
|
|
teacherOpenCourseScheduleSessionSnapDao.deleteTeacherOpenCourseScheduleSessionBySessionIds(ids);
|
|
|
|
|
|
|
|
teacherOpenCourseMergeScheduleSessionDao.deleteTeacherOpenCourseMergeScheduleSessionByMasterIds(ids);
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
throw new PlatformException("批量删除新增排课失败", e);
|
|
|
|
throw new PlatformException("批量删除新增排课失败", e);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -307,8 +306,8 @@ public class TeacherOpenCourseScheduleSessionService extends CoreBaseService<Tea
|
|
|
|
* @param teacherOpenCourseId
|
|
|
|
* @param teacherOpenCourseId
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public List<Map> getSessionNameList(@NotNull(message = "开课ID不能为空!") Long teacherOpenCourseId) {
|
|
|
|
public List<Map> getSessionNameList(Long teacherOpenCourseId, Long teacherId) {
|
|
|
|
return teacherOpenCourseScheduleSessionDao.getSessionNameList(teacherOpenCourseId);
|
|
|
|
return teacherOpenCourseScheduleSessionDao.getSessionNameList(teacherOpenCourseId, teacherId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|