|
|
|
@ -16,11 +16,11 @@ queryByCondition
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeResourcesInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_merge_resources_info_id,#teacherOpenCourseMergeResourcesInfoIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoId)){
|
|
|
|
|
and t.course_info_id =#courseInfoId#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeCourseInfoId)){
|
|
|
|
|
and t.course_info_id =#teacherOpenCourseMergeCourseInfoId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.course_info_id,#courseInfoIdPlural#)
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeCourseInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.course_info_id,#teacherOpenCourseMergeCourseInfoIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseId)){
|
|
|
|
|
and t.teacher_open_course_id =#teacherOpenCourseId#
|
|
|
|
@ -67,11 +67,11 @@ queryByConditionQuery
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeResourcesInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_merge_resources_info_id,#teacherOpenCourseMergeResourcesInfoIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoId)){
|
|
|
|
|
and t.course_info_id =#courseInfoId#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeCourseInfoId)){
|
|
|
|
|
and t.course_info_id =#teacherOpenCourseMergeCourseInfoId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.course_info_id,#courseInfoIdPlural#)
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeCourseInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.course_info_id,#teacherOpenCourseMergeCourseInfoIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseId)){
|
|
|
|
|
and t.teacher_open_course_id =#teacherOpenCourseId#
|
|
|
|
@ -126,11 +126,11 @@ updateGivenByIds
|
|
|
|
|
|
|
|
|
|
update teacher_open_course_merge_resources_info
|
|
|
|
|
set
|
|
|
|
|
@if(contain("courseInfoId",_given)){
|
|
|
|
|
@if(isEmpty(courseInfoId)){
|
|
|
|
|
@if(contain("teacherOpenCourseMergeCourseInfoId",_given)){
|
|
|
|
|
@if(isEmpty(teacherOpenCourseMergeCourseInfoId)){
|
|
|
|
|
course_info_id = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
course_info_id = #courseInfoId# ,
|
|
|
|
|
course_info_id = #teacherOpenCourseMergeCourseInfoId# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("teacherOpenCourseId",_given)){
|
|
|
|
@ -191,8 +191,8 @@ getTeacherOpenCourseMergeResourcesInfoValues
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeResourcesInfoId)){
|
|
|
|
|
and t.teacher_open_course_merge_resources_info_id =#teacherOpenCourseMergeResourcesInfoId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoId)){
|
|
|
|
|
and t.course_info_id =#courseInfoId#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeCourseInfoId)){
|
|
|
|
|
and t.course_info_id =#teacherOpenCourseMergeCourseInfoId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseId)){
|
|
|
|
|
and t.teacher_open_course_id =#teacherOpenCourseId#
|
|
|
|
@ -228,11 +228,11 @@ getValuesByQuery
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeResourcesInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_merge_resources_info_id,#teacherOpenCourseMergeResourcesInfoIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoId)){
|
|
|
|
|
and t.course_info_id =#courseInfoId#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeCourseInfoId)){
|
|
|
|
|
and t.course_info_id =#teacherOpenCourseMergeCourseInfoId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.course_info_id,#courseInfoIdPlural#)
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeCourseInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.course_info_id,#teacherOpenCourseMergeCourseInfoIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseId)){
|
|
|
|
|
and t.teacher_open_course_id =#teacherOpenCourseId#
|
|
|
|
@ -277,11 +277,11 @@ getValuesByQueryNotWithPermission
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeResourcesInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_merge_resources_info_id,#teacherOpenCourseMergeResourcesInfoIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoId)){
|
|
|
|
|
and t.course_info_id =#courseInfoId#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeCourseInfoId)){
|
|
|
|
|
and t.course_info_id =#teacherOpenCourseMergeCourseInfoId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.course_info_id,#courseInfoIdPlural#)
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeCourseInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.course_info_id,#teacherOpenCourseMergeCourseInfoIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseId)){
|
|
|
|
|
and t.teacher_open_course_id =#teacherOpenCourseId#
|
|
|
|
@ -335,11 +335,11 @@ getExcelValues
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeResourcesInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_merge_resources_info_id,#teacherOpenCourseMergeResourcesInfoIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoId)){
|
|
|
|
|
and t.course_info_id =#courseInfoId#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeCourseInfoId)){
|
|
|
|
|
and t.course_info_id =#teacherOpenCourseMergeCourseInfoId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.course_info_id,#courseInfoIdPlural#)
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeCourseInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.course_info_id,#teacherOpenCourseMergeCourseInfoIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseId)){
|
|
|
|
|
and t.teacher_open_course_id =#teacherOpenCourseId#
|
|
|
|
@ -385,11 +385,11 @@ getExcelValues
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeResourcesInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_merge_resources_info_id,#teacherOpenCourseMergeResourcesInfoIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoId)){
|
|
|
|
|
and t.course_info_id =#courseInfoId#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeCourseInfoId)){
|
|
|
|
|
and t.course_info_id =#teacherOpenCourseMergeCourseInfoId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.course_info_id,#courseInfoIdPlural#)
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseMergeCourseInfoIdPlural)){
|
|
|
|
|
and find_in_set(t.course_info_id,#teacherOpenCourseMergeCourseInfoIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseId)){
|
|
|
|
|
and t.teacher_open_course_id =#teacherOpenCourseId#
|
|
|
|
|