|
|
|
@ -16,17 +16,20 @@ queryByCondition
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseTitle)){
|
|
|
|
|
and t.open_course_title =#openCourseTitle#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseTitle)){
|
|
|
|
|
and t.teacher_open_course_title =#teacherOpenCourseTitle#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseCode)){
|
|
|
|
|
and t.open_course_code =#openCourseCode#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseCode)){
|
|
|
|
|
and t.teacher_open_course_code =#teacherOpenCourseCode#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseSummary)){
|
|
|
|
|
and t.open_course_summary =#openCourseSummary#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseCover)){
|
|
|
|
|
and t.teacher_open_course_cover =#teacherOpenCourseCover#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseCover)){
|
|
|
|
|
and t.open_course_cover =#openCourseCover#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStatus)){
|
|
|
|
|
and t.teacher_open_course_status =#teacherOpenCourseStatus#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStatusPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_status,#teacherOpenCourseStatusPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(startTime)){
|
|
|
|
|
and t.start_time =#startTime#
|
|
|
|
@ -49,9 +52,6 @@ queryByCondition
|
|
|
|
|
@if(!isEmpty(createTime)){
|
|
|
|
|
and t.create_time =#createTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseIndex)){
|
|
|
|
|
and t.open_course_index =#openCourseIndex#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
queryByConditionQuery
|
|
|
|
@ -70,17 +70,20 @@ queryByConditionQuery
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseTitle)){
|
|
|
|
|
and t.open_course_title =#openCourseTitle#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseTitle)){
|
|
|
|
|
and t.teacher_open_course_title =#teacherOpenCourseTitle#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseCode)){
|
|
|
|
|
and t.teacher_open_course_code =#teacherOpenCourseCode#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseCode)){
|
|
|
|
|
and t.open_course_code =#openCourseCode#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseCover)){
|
|
|
|
|
and t.teacher_open_course_cover =#teacherOpenCourseCover#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseSummary)){
|
|
|
|
|
and t.open_course_summary =#openCourseSummary#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStatus)){
|
|
|
|
|
and t.teacher_open_course_status =#teacherOpenCourseStatus#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseCover)){
|
|
|
|
|
and t.open_course_cover =#openCourseCover#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStatusPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_status,#teacherOpenCourseStatusPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(startTime)){
|
|
|
|
|
and t.start_time =#startTime#
|
|
|
|
@ -103,9 +106,6 @@ queryByConditionQuery
|
|
|
|
|
@if(!isEmpty(createTime)){
|
|
|
|
|
and t.create_time =#createTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseIndex)){
|
|
|
|
|
and t.open_course_index =#openCourseIndex#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -132,32 +132,32 @@ updateGivenByIds
|
|
|
|
|
|
|
|
|
|
update teacher_open_course
|
|
|
|
|
set
|
|
|
|
|
@if(contain("openCourseTitle",_given)){
|
|
|
|
|
@if(isEmpty(openCourseTitle)){
|
|
|
|
|
open_course_title = null ,
|
|
|
|
|
@if(contain("teacherOpenCourseTitle",_given)){
|
|
|
|
|
@if(isEmpty(teacherOpenCourseTitle)){
|
|
|
|
|
teacher_open_course_title = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
open_course_title = #openCourseTitle# ,
|
|
|
|
|
teacher_open_course_title = #teacherOpenCourseTitle# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("openCourseCode",_given)){
|
|
|
|
|
@if(isEmpty(openCourseCode)){
|
|
|
|
|
open_course_code = null ,
|
|
|
|
|
@if(contain("teacherOpenCourseCode",_given)){
|
|
|
|
|
@if(isEmpty(teacherOpenCourseCode)){
|
|
|
|
|
teacher_open_course_code = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
open_course_code = #openCourseCode# ,
|
|
|
|
|
teacher_open_course_code = #teacherOpenCourseCode# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("openCourseSummary",_given)){
|
|
|
|
|
@if(isEmpty(openCourseSummary)){
|
|
|
|
|
open_course_summary = null ,
|
|
|
|
|
@if(contain("teacherOpenCourseCover",_given)){
|
|
|
|
|
@if(isEmpty(teacherOpenCourseCover)){
|
|
|
|
|
teacher_open_course_cover = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
open_course_summary = #openCourseSummary# ,
|
|
|
|
|
teacher_open_course_cover = #teacherOpenCourseCover# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("openCourseCover",_given)){
|
|
|
|
|
@if(isEmpty(openCourseCover)){
|
|
|
|
|
open_course_cover = null ,
|
|
|
|
|
@if(contain("teacherOpenCourseStatus",_given)){
|
|
|
|
|
@if(isEmpty(teacherOpenCourseStatus)){
|
|
|
|
|
teacher_open_course_status = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
open_course_cover = #openCourseCover# ,
|
|
|
|
|
teacher_open_course_status = #teacherOpenCourseStatus# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("startTime",_given)){
|
|
|
|
@ -194,13 +194,6 @@ updateGivenByIds
|
|
|
|
|
@}else{
|
|
|
|
|
create_time = #createTime# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("openCourseIndex",_given)){
|
|
|
|
|
@if(isEmpty(openCourseIndex)){
|
|
|
|
|
open_course_index = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
open_course_index = #openCourseIndex# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
teacher_open_course_id = teacher_open_course_id
|
|
|
|
|
where find_in_set(teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
@ -218,17 +211,17 @@ getTeacherOpenCourseValues
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseId)){
|
|
|
|
|
and t.teacher_open_course_id =#teacherOpenCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseTitle)){
|
|
|
|
|
and t.open_course_title =#openCourseTitle#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseTitle)){
|
|
|
|
|
and t.teacher_open_course_title =#teacherOpenCourseTitle#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseCode)){
|
|
|
|
|
and t.open_course_code =#openCourseCode#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseCode)){
|
|
|
|
|
and t.teacher_open_course_code =#teacherOpenCourseCode#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseSummary)){
|
|
|
|
|
and t.open_course_summary =#openCourseSummary#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseCover)){
|
|
|
|
|
and t.teacher_open_course_cover =#teacherOpenCourseCover#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseCover)){
|
|
|
|
|
and t.open_course_cover =#openCourseCover#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStatus)){
|
|
|
|
|
and t.teacher_open_course_status =#teacherOpenCourseStatus#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(startTime)){
|
|
|
|
|
and t.start_time =#startTime#
|
|
|
|
@ -245,9 +238,6 @@ getTeacherOpenCourseValues
|
|
|
|
|
@if(!isEmpty(createTime)){
|
|
|
|
|
and t.create_time =#createTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseIndex)){
|
|
|
|
|
and t.open_course_index =#openCourseIndex#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getValuesByQuery
|
|
|
|
@ -264,17 +254,20 @@ getValuesByQuery
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseTitle)){
|
|
|
|
|
and t.open_course_title =#openCourseTitle#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseTitle)){
|
|
|
|
|
and t.teacher_open_course_title =#teacherOpenCourseTitle#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseCode)){
|
|
|
|
|
and t.teacher_open_course_code =#teacherOpenCourseCode#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseCode)){
|
|
|
|
|
and t.open_course_code =#openCourseCode#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseCover)){
|
|
|
|
|
and t.teacher_open_course_cover =#teacherOpenCourseCover#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseSummary)){
|
|
|
|
|
and t.open_course_summary =#openCourseSummary#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStatus)){
|
|
|
|
|
and t.teacher_open_course_status =#teacherOpenCourseStatus#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseCover)){
|
|
|
|
|
and t.open_course_cover =#openCourseCover#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStatusPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_status,#teacherOpenCourseStatusPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(startTime)){
|
|
|
|
|
and t.start_time =#startTime#
|
|
|
|
@ -297,16 +290,6 @@ getValuesByQuery
|
|
|
|
|
@if(!isEmpty(createTime)){
|
|
|
|
|
and t.create_time =#createTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(openCourseIndex)){
|
|
|
|
|
and t.open_course_index =#openCourseIndex#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getIndexData
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 根据开课ID查询子数据数量
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
|
from teacher_open_course t
|
|
|
|
|
left join on
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|