|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
queryByCondition
|
|
|
|
|
===
|
|
|
|
|
* 根据不为空的参数进行分页查询
|
|
|
|
|
|
|
|
|
|
select
|
|
|
|
|
@pageTag(){
|
|
|
|
|
t.*
|
|
|
|
@ -13,14 +12,17 @@ queryByCondition
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogId)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_id =#teacherOpenCourseStudentSigninLogId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingSessionTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_session_time =#teacherOpenCourseStudentSigninSettingSessionTime#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_student_signin_log_id,#teacherOpenCourseStudentSigninLogIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingId)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_id =#teacherOpenCourseStudentSigninSettingId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_student_signin_log_id,#teacherOpenCourseStudentSigninLogIdPlural#)
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_student_signin_setting_id,#teacherOpenCourseStudentSigninSettingIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingSessionTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_session_time =#teacherOpenCourseStudentSigninSettingSessionTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(studentId)){
|
|
|
|
|
and t.student_id =#studentId#
|
|
|
|
@ -37,6 +39,9 @@ queryByCondition
|
|
|
|
|
@if(!isEmpty(schoolClassId)){
|
|
|
|
|
and t.school_class_id =#schoolClassId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassIdPlural)){
|
|
|
|
|
and find_in_set(t.school_class_id,#schoolClassIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogAddTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_add_time =#teacherOpenCourseStudentSigninLogAddTime#
|
|
|
|
|
@}
|
|
|
|
@ -69,7 +74,6 @@ queryByCondition
|
|
|
|
|
queryByConditionQuery
|
|
|
|
|
===
|
|
|
|
|
* 根据不为空的参数进行分页查询(无权限)
|
|
|
|
|
|
|
|
|
|
select
|
|
|
|
|
@pageTag(){
|
|
|
|
|
t.*
|
|
|
|
@ -79,14 +83,17 @@ queryByConditionQuery
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogId)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_id =#teacherOpenCourseStudentSigninLogId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingSessionTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_session_time =#teacherOpenCourseStudentSigninSettingSessionTime#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_student_signin_log_id,#teacherOpenCourseStudentSigninLogIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingId)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_id =#teacherOpenCourseStudentSigninSettingId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_student_signin_log_id,#teacherOpenCourseStudentSigninLogIdPlural#)
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_student_signin_setting_id,#teacherOpenCourseStudentSigninSettingIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingSessionTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_session_time =#teacherOpenCourseStudentSigninSettingSessionTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(studentId)){
|
|
|
|
|
and t.student_id =#studentId#
|
|
|
|
@ -103,6 +110,9 @@ queryByConditionQuery
|
|
|
|
|
@if(!isEmpty(schoolClassId)){
|
|
|
|
|
and t.school_class_id =#schoolClassId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassIdPlural)){
|
|
|
|
|
and find_in_set(t.school_class_id,#schoolClassIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogAddTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_add_time =#teacherOpenCourseStudentSigninLogAddTime#
|
|
|
|
|
@}
|
|
|
|
@ -132,30 +142,36 @@ queryByConditionQuery
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deleteTeacherOpenCourseStudentSigninLogByIds
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 批量删除
|
|
|
|
|
|
|
|
|
|
delete from teacher_open_course_student_signin_log where find_in_set(teacher_open_course_student_signin_log_id,#ids#)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getByIds
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
select * from teacher_open_course_student_signin_log where find_in_set(teacher_open_course_student_signin_log_id,#ids#)
|
|
|
|
|
select * from teacher_open_course_student_signin_log where find_in_set(teacher_open_course_student_signin_log_id,#ids#)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateGivenByIds
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 批量更新指定字段,无论此字段是否有值
|
|
|
|
|
|
|
|
|
|
update teacher_open_course_student_signin_log
|
|
|
|
|
set
|
|
|
|
|
@if(contain("teacherOpenCourseStudentSigninSettingId",_given)){
|
|
|
|
|
@if(isEmpty(teacherOpenCourseStudentSigninSettingId)){
|
|
|
|
|
teacher_open_course_student_signin_setting_id = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
teacher_open_course_student_signin_setting_id = #teacherOpenCourseStudentSigninSettingId# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("teacherOpenCourseStudentSigninSettingSessionTime",_given)){
|
|
|
|
|
@if(isEmpty(teacherOpenCourseStudentSigninSettingSessionTime)){
|
|
|
|
|
teacher_open_course_student_signin_setting_session_time = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
teacher_open_course_student_signin_setting_session_time = #teacherOpenCourseStudentSigninSettingSessionTime# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("studentId",_given)){
|
|
|
|
|
@if(isEmpty(studentId)){
|
|
|
|
|
student_id = null ,
|
|
|
|
@ -170,13 +186,6 @@ updateGivenByIds
|
|
|
|
|
teacher_open_course_id = #teacherOpenCourseId# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("teacherOpenCourseStudentSigninSettingSessionTime",_given)){
|
|
|
|
|
@if(isEmpty(teacherOpenCourseStudentSigninSettingSessionTime)){
|
|
|
|
|
teacher_open_course_student_signin_setting_session_time = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
teacher_open_course_student_signin_setting_session_time = #teacherOpenCourseStudentSigninSettingSessionTime# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("schoolClassId",_given)){
|
|
|
|
|
@if(isEmpty(schoolClassId)){
|
|
|
|
|
school_class_id = null ,
|
|
|
|
@ -219,13 +228,6 @@ updateGivenByIds
|
|
|
|
|
teacher_open_course_student_signin_log_tag = #teacherOpenCourseStudentSigninLogTag# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("teacherOpenCourseStudentSigninSettingId",_given)){
|
|
|
|
|
@if(isEmpty(teacherOpenCourseStudentSigninSettingId)){
|
|
|
|
|
teacher_open_course_student_signin_setting_id = null ,
|
|
|
|
|
@}else{
|
|
|
|
|
teacher_open_course_student_signin_setting_id = #teacherOpenCourseStudentSigninSettingId# ,
|
|
|
|
|
@}
|
|
|
|
|
@}
|
|
|
|
|
@if(contain("orgId",_given)){
|
|
|
|
|
@if(isEmpty(orgId)){
|
|
|
|
|
org_id = null ,
|
|
|
|
@ -244,24 +246,21 @@ updateGivenByIds
|
|
|
|
|
where find_in_set(teacher_open_course_student_signin_log_id,#teacherOpenCourseStudentSigninLogIdPlural#)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getTeacherOpenCourseStudentSigninLogValues
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 根据不为空的参数进行查询
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
|
from teacher_open_course_student_signin_log t
|
|
|
|
|
where 1=1
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogId)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_id =#teacherOpenCourseStudentSigninLogId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingSessionTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_session_time =#teacherOpenCourseStudentSigninSettingSessionTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingId)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_id =#teacherOpenCourseStudentSigninSettingId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingSessionTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_session_time =#teacherOpenCourseStudentSigninSettingSessionTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(studentId)){
|
|
|
|
|
and t.student_id =#studentId#
|
|
|
|
|
@}
|
|
|
|
@ -293,26 +292,27 @@ getTeacherOpenCourseStudentSigninLogValues
|
|
|
|
|
and t.user_id =#userId#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getValuesByQuery
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 根据不为空的参数进行查询
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
|
from teacher_open_course_student_signin_log t
|
|
|
|
|
where 1=1 and #function("teacherOpenCourseStudentSigninLog.query")#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogId)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_id =#teacherOpenCourseStudentSigninLogId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingSessionTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_session_time =#teacherOpenCourseStudentSigninSettingSessionTime#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_student_signin_log_id,#teacherOpenCourseStudentSigninLogIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingId)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_id =#teacherOpenCourseStudentSigninSettingId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_student_signin_log_id,#teacherOpenCourseStudentSigninLogIdPlural#)
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_student_signin_setting_id,#teacherOpenCourseStudentSigninSettingIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingSessionTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_session_time =#teacherOpenCourseStudentSigninSettingSessionTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(studentId)){
|
|
|
|
|
and t.student_id =#studentId#
|
|
|
|
@ -329,6 +329,9 @@ getValuesByQuery
|
|
|
|
|
@if(!isEmpty(schoolClassId)){
|
|
|
|
|
and t.school_class_id =#schoolClassId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassIdPlural)){
|
|
|
|
|
and find_in_set(t.school_class_id,#schoolClassIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogAddTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_add_time =#teacherOpenCourseStudentSigninLogAddTime#
|
|
|
|
|
@}
|
|
|
|
@ -360,24 +363,181 @@ getValuesByQuery
|
|
|
|
|
|
|
|
|
|
getValuesByQueryNotWithPermission
|
|
|
|
|
===
|
|
|
|
|
|
|
|
|
|
* 根据不为空的参数进行查询(不包含权限)
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
|
from teacher_open_course_student_signin_log t
|
|
|
|
|
where 1=1
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogId)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_id =#teacherOpenCourseStudentSigninLogId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_student_signin_log_id,#teacherOpenCourseStudentSigninLogIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingId)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_id =#teacherOpenCourseStudentSigninSettingId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_student_signin_setting_id,#teacherOpenCourseStudentSigninSettingIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingSessionTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_session_time =#teacherOpenCourseStudentSigninSettingSessionTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(studentId)){
|
|
|
|
|
and t.student_id =#studentId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(studentIdPlural)){
|
|
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseId)){
|
|
|
|
|
and t.teacher_open_course_id =#teacherOpenCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassId)){
|
|
|
|
|
and t.school_class_id =#schoolClassId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassIdPlural)){
|
|
|
|
|
and find_in_set(t.school_class_id,#schoolClassIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogAddTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_add_time =#teacherOpenCourseStudentSigninLogAddTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogType)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_type =#teacherOpenCourseStudentSigninLogType#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogRemark)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_remark =#teacherOpenCourseStudentSigninLogRemark#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogIp)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_ip =#teacherOpenCourseStudentSigninLogIp#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogTag)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_tag =#teacherOpenCourseStudentSigninLogTag#
|
|
|
|
|
@}
|
|
|
|
|
@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#)
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getExcelValues
|
|
|
|
|
===
|
|
|
|
|
* 根据不为空的参数进行查询导入需要的参数
|
|
|
|
|
SELECT * FROM (
|
|
|
|
|
(
|
|
|
|
|
select
|
|
|
|
|
MAX(LENGTH(t.teacher_open_course_student_signin_setting_id)) teacher_open_course_student_signin_setting_id,
|
|
|
|
|
MAX(LENGTH(t.teacher_open_course_student_signin_setting_session_time)) teacher_open_course_student_signin_setting_session_time,
|
|
|
|
|
MAX(LENGTH(t.student_id)) student_id,
|
|
|
|
|
MAX(LENGTH(t.teacher_open_course_id)) teacher_open_course_id,
|
|
|
|
|
MAX(LENGTH(t.school_class_id)) school_class_id,
|
|
|
|
|
MAX(LENGTH(t.teacher_open_course_student_signin_log_add_time)) teacher_open_course_student_signin_log_add_time,
|
|
|
|
|
MAX(LENGTH(t.teacher_open_course_student_signin_log_type)) teacher_open_course_student_signin_log_type,
|
|
|
|
|
MAX(LENGTH(t.teacher_open_course_student_signin_log_remark)) teacher_open_course_student_signin_log_remark,
|
|
|
|
|
MAX(LENGTH(t.teacher_open_course_student_signin_log_ip)) teacher_open_course_student_signin_log_ip,
|
|
|
|
|
MAX(LENGTH(t.teacher_open_course_student_signin_log_tag)) teacher_open_course_student_signin_log_tag
|
|
|
|
|
from teacher_open_course_student_signin_log t
|
|
|
|
|
where 1=1 and #function("teacherOpenCourseStudentSigninLog.query")#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogId)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_id =#teacherOpenCourseStudentSigninLogId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_student_signin_log_id,#teacherOpenCourseStudentSigninLogIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingId)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_id =#teacherOpenCourseStudentSigninSettingId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_student_signin_setting_id,#teacherOpenCourseStudentSigninSettingIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingSessionTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_session_time =#teacherOpenCourseStudentSigninSettingSessionTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(studentId)){
|
|
|
|
|
and t.student_id =#studentId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(studentIdPlural)){
|
|
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseId)){
|
|
|
|
|
and t.teacher_open_course_id =#teacherOpenCourseId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_id,#teacherOpenCourseIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassId)){
|
|
|
|
|
and t.school_class_id =#schoolClassId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassIdPlural)){
|
|
|
|
|
and find_in_set(t.school_class_id,#schoolClassIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogAddTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_add_time =#teacherOpenCourseStudentSigninLogAddTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogType)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_type =#teacherOpenCourseStudentSigninLogType#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogRemark)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_remark =#teacherOpenCourseStudentSigninLogRemark#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogIp)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_ip =#teacherOpenCourseStudentSigninLogIp#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogTag)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_tag =#teacherOpenCourseStudentSigninLogTag#
|
|
|
|
|
@}
|
|
|
|
|
@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#)
|
|
|
|
|
@}
|
|
|
|
|
)
|
|
|
|
|
UNION ALL
|
|
|
|
|
(
|
|
|
|
|
select
|
|
|
|
|
t.teacher_open_course_student_signin_setting_id ,
|
|
|
|
|
t.teacher_open_course_student_signin_setting_session_time ,
|
|
|
|
|
t.student_id ,
|
|
|
|
|
t.teacher_open_course_id ,
|
|
|
|
|
t.school_class_id ,
|
|
|
|
|
t.teacher_open_course_student_signin_log_add_time ,
|
|
|
|
|
t.teacher_open_course_student_signin_log_type ,
|
|
|
|
|
t.teacher_open_course_student_signin_log_remark ,
|
|
|
|
|
t.teacher_open_course_student_signin_log_ip ,
|
|
|
|
|
t.teacher_open_course_student_signin_log_tag
|
|
|
|
|
from teacher_open_course_student_signin_log t
|
|
|
|
|
where 1=1 and #function("teacherOpenCourseStudentSigninLog.query")#
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogId)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_id =#teacherOpenCourseStudentSigninLogId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_student_signin_log_id,#teacherOpenCourseStudentSigninLogIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingId)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_id =#teacherOpenCourseStudentSigninSettingId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingIdPlural)){
|
|
|
|
|
and find_in_set(t.teacher_open_course_student_signin_setting_id,#teacherOpenCourseStudentSigninSettingIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninSettingSessionTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_setting_session_time =#teacherOpenCourseStudentSigninSettingSessionTime#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(studentId)){
|
|
|
|
|
and t.student_id =#studentId#
|
|
|
|
|
@}
|
|
|
|
@ -393,6 +553,9 @@ getValuesByQueryNotWithPermission
|
|
|
|
|
@if(!isEmpty(schoolClassId)){
|
|
|
|
|
and t.school_class_id =#schoolClassId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(schoolClassIdPlural)){
|
|
|
|
|
and find_in_set(t.school_class_id,#schoolClassIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseStudentSigninLogAddTime)){
|
|
|
|
|
and t.teacher_open_course_student_signin_log_add_time =#teacherOpenCourseStudentSigninLogAddTime#
|
|
|
|
|
@}
|
|
|
|
@ -420,6 +583,5 @@ getValuesByQueryNotWithPermission
|
|
|
|
|
@if(!isEmpty(userIdPlural)){
|
|
|
|
|
and find_in_set(t.user_id,#userIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
)t
|