|
|
|
@ -17,10 +17,10 @@ queryByCondition
|
|
|
|
|
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)){
|
|
|
|
|
and t.teacher_open_course_ids =#teacherOpenCourseIds#
|
|
|
|
|
and (find_in_set(#teacherOpenCourseIds#, t.teacher_open_course_ids) or t.teacher_open_course_ids = "ALL")
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(noticeTitle)){
|
|
|
|
|
and t.notice_title =#noticeTitle#
|
|
|
|
@ -71,10 +71,10 @@ queryByConditionQuery
|
|
|
|
|
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)){
|
|
|
|
|
and t.teacher_open_course_ids =#teacherOpenCourseIds#
|
|
|
|
|
and (find_in_set(#teacherOpenCourseIds#, t.teacher_open_course_ids) or t.teacher_open_course_ids = "ALL")
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(noticeTitle)){
|
|
|
|
|
and t.notice_title =#noticeTitle#
|
|
|
|
@ -212,10 +212,10 @@ getTeacherOpenCourseNoticeValues
|
|
|
|
|
and t.teacher_open_course_notice_id =#teacherOpenCourseNoticeId#
|
|
|
|
|
@}
|
|
|
|
|
@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)){
|
|
|
|
|
and t.teacher_open_course_ids =#teacherOpenCourseIds#
|
|
|
|
|
and (find_in_set(#teacherOpenCourseIds#, t.teacher_open_course_ids) or t.teacher_open_course_ids = "ALL")
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(noticeTitle)){
|
|
|
|
|
and t.notice_title =#noticeTitle#
|
|
|
|
@ -255,10 +255,10 @@ 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)){
|
|
|
|
|
and t.teacher_open_course_ids =#teacherOpenCourseIds#
|
|
|
|
|
and (find_in_set(#teacherOpenCourseIds#, t.teacher_open_course_ids) or t.teacher_open_course_ids = "ALL")
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(noticeTitle)){
|
|
|
|
|
and t.notice_title =#noticeTitle#
|
|
|
|
@ -297,6 +297,62 @@ getValuesByQuery
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getValuesByQueryNotWithPermission
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 根据不为空的参数进行查询
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
|
from teacher_open_course_notice t
|
|
|
|
|
where 1=1
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseNoticeId)){
|
|
|
|
|
and t.teacher_open_course_notice_id =#teacherOpenCourseNoticeId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseNoticeIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_notice_id,#teacherOpenCourseNoticeIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassIds)){
|
|
|
|
|
and (find_in_set(#schoolClassIds#, t.school_class_ids) or t.school_class_ids = "ALL")
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseIds)){
|
|
|
|
|
and (find_in_set(#teacherOpenCourseIds#, t.teacher_open_course_ids) or t.teacher_open_course_ids = "ALL")
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(noticeTitle)){
|
|
|
|
|
and t.notice_title =#noticeTitle#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(noticeContent)){
|
|
|
|
|
and t.notice_content =#noticeContent#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(createTime)){
|
|
|
|
|
and t.create_time =#createTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(createByTeacherId)){
|
|
|
|
|
and t.create_by_teacher_id =#createByTeacherId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(createByTeacherIdPlural)){
|
|
|
|
|
and find_in_set(t.create_by_teacher_id,#createByTeacherIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(orgIdPlural)){
|
|
|
|
|
and find_in_set(t.org_id,#orgIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(userId)){
|
|
|
|
|
and t.user_id =#userId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(userIdPlural)){
|
|
|
|
|
and find_in_set(t.user_id,#userIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(delFlag)){
|
|
|
|
|
and t.del_flag =#delFlag#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(studentId)){
|
|
|
|
|
and find_in_set((select b.class_id
|
|
|
|
|
from student b left join school_class ba on ba.class_id = b.class_id
|
|
|
|
|
where b.student_status = 1 and ba.class_status = 1 and b.student_id = #studentId# ), t.school_class_ids)
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
getClassByOpenCourseId
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|