|
|
|
@ -63,7 +63,7 @@ queryByConditionQuery
|
|
|
|
|
t.*
|
|
|
|
|
@}
|
|
|
|
|
from teacher_open_course_notice t
|
|
|
|
|
where 1=1
|
|
|
|
|
where 1=1
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseNoticeId)){
|
|
|
|
|
and t.teacher_open_course_notice_id =#teacherOpenCourseNoticeId#
|
|
|
|
|
@}
|
|
|
|
@ -207,7 +207,7 @@ getTeacherOpenCourseNoticeValues
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
|
from teacher_open_course_notice t
|
|
|
|
|
where 1=1
|
|
|
|
|
where 1=1
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseNoticeId)){
|
|
|
|
|
and t.teacher_open_course_notice_id =#teacherOpenCourseNoticeId#
|
|
|
|
|
@}
|
|
|
|
@ -255,6 +255,7 @@ getValuesByQuery
|
|
|
|
|
and find_in_set(t.teacher_open_course_notice_id,#teacherOpenCourseNoticeIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassIds)){
|
|
|
|
|
and t.school_class_ids =#schoolClassIds#
|
|
|
|
|
and (find_in_set(#schoolClassIds#, t.school_class_ids) or t.school_class_ids = "ALL")
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseIds)){
|
|
|
|
@ -353,13 +354,14 @@ getValuesByQueryNotWithPermission
|
|
|
|
|
where b.student_status = 1 and ba.class_status = 1 and b.student_id = #studentId# ), t.school_class_ids)
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getClassByOpenCourseId
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 根据开课课程查询关联的班级
|
|
|
|
|
select * from school_class where class_status = 1
|
|
|
|
|
select * from school_class where class_status = 1
|
|
|
|
|
and find_in_set(class_id,
|
|
|
|
|
(select group_concat(school_class_id)
|
|
|
|
|
from teacher_open_course_merge_school_class
|
|
|
|
|
where teacher_open_course_merge_school_class_status = 1
|
|
|
|
|
and teacher_open_course_id = ${teacherOpenCourseNotice.teacherOpenCourseIds}))
|
|
|
|
|
(select group_concat(school_class_id)
|
|
|
|
|
from teacher_open_course_merge_school_class
|
|
|
|
|
where teacher_open_course_merge_school_class_status = 1
|
|
|
|
|
and teacher_open_course_id = ${teacherOpenCourseNotice.teacherOpenCourseIds}))
|
|
|
|
|