|
|
queryByCondition
|
|
|
===
|
|
|
* 根据不为空的参数进行分页查询
|
|
|
|
|
|
select
|
|
|
@pageTag(){
|
|
|
t.*,
|
|
|
t2.student_sn studentSn,
|
|
|
t2.student_name studentName
|
|
|
@}
|
|
|
from student_hands_on_task_step t
|
|
|
left join student t2 on t.student_id = t2.student_id
|
|
|
where 1=1
|
|
|
@//数据权限,该sql语句功能点,如果不考虑数据权限,可以删除此行
|
|
|
and #function("studentHandsOnTaskStep.query")#
|
|
|
@if(!isEmpty(studentHandsOnTaskStepId)){
|
|
|
and t.student_hands_on_task_step_id =#studentHandsOnTaskStepId#
|
|
|
@}
|
|
|
@if(!isEmpty(studentHandsOnTaskStepIdPlural)){
|
|
|
and find_in_set(t.student_hands_on_task_step_id,#studentHandsOnTaskStepIdPlural#)
|
|
|
@}
|
|
|
@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(handsOnId)){
|
|
|
and t.hands_on_id =#handsOnId#
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnIdPlural)){
|
|
|
and find_in_set(t.hands_on_id,#handsOnIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnTaskId)){
|
|
|
and t.hands_on_task_id =#handsOnTaskId#
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnTaskIdPlural)){
|
|
|
and find_in_set(t.hands_on_task_id,#handsOnTaskIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(stem)){
|
|
|
and t.stem =#stem#
|
|
|
@}
|
|
|
@if(!isEmpty(theoryScore)){
|
|
|
and t.theory_score =#theoryScore#
|
|
|
@}
|
|
|
@if(!isEmpty(createTime)){
|
|
|
and t.create_time =#createTime#
|
|
|
@}
|
|
|
@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(teacherId)){
|
|
|
and t.teacher_id =#teacherId#
|
|
|
@}
|
|
|
@if(!isEmpty(teacherIdPlural)){
|
|
|
and find_in_set(t.teacher_id,#teacherIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(studentId)){
|
|
|
and t.student_id =#studentId#
|
|
|
@}
|
|
|
@if(!isEmpty(studentIdPlural)){
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(studentSn)){
|
|
|
and t2.student_sn =#studentSn#
|
|
|
@}
|
|
|
@if(!isEmpty(studentName)){
|
|
|
and t2.student_name =#studentName#
|
|
|
@}
|
|
|
|
|
|
|
|
|
queryByConditionQuery
|
|
|
===
|
|
|
* 根据不为空的参数进行分页查询(无权限)
|
|
|
|
|
|
select
|
|
|
@pageTag(){
|
|
|
t.*,
|
|
|
tocho.hands_on_name,
|
|
|
t2.student_sn student_sn,
|
|
|
t2.student_name student_name
|
|
|
@}
|
|
|
from student_hands_on_task_step t
|
|
|
left join teacher_open_course_hands_on tocho on t.hands_on_id = tocho.hands_on_id
|
|
|
left join student t2 on t.student_id = t2.student_id
|
|
|
where 1=1
|
|
|
@if(!isEmpty(studentHandsOnTaskStepId)){
|
|
|
and t.student_hands_on_task_step_id =#studentHandsOnTaskStepId#
|
|
|
@}
|
|
|
@if(!isEmpty(studentHandsOnTaskStepIdPlural)){
|
|
|
and find_in_set(t.student_hands_on_task_step_id,#studentHandsOnTaskStepIdPlural#)
|
|
|
@}
|
|
|
@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(handsOnId)){
|
|
|
and t.hands_on_id =#handsOnId#
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnIdPlural)){
|
|
|
and find_in_set(t.hands_on_id,#handsOnIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnTaskId)){
|
|
|
and t.hands_on_task_id =#handsOnTaskId#
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnTaskIdPlural)){
|
|
|
and find_in_set(t.hands_on_task_id,#handsOnTaskIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(stem)){
|
|
|
and t.stem =#stem#
|
|
|
@}
|
|
|
@if(!isEmpty(theoryScore)){
|
|
|
and t.theory_score =#theoryScore#
|
|
|
@}
|
|
|
@if(!isEmpty(createTime)){
|
|
|
and t.create_time =#createTime#
|
|
|
@}
|
|
|
@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(teacherId)){
|
|
|
and t.teacher_id =#teacherId#
|
|
|
@}
|
|
|
@if(!isEmpty(teacherIdPlural)){
|
|
|
and find_in_set(t.teacher_id,#teacherIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(studentId)){
|
|
|
and t.student_id =#studentId#
|
|
|
@}
|
|
|
@if(!isEmpty(studentIdPlural)){
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(studentSn)){
|
|
|
and t2.student_sn =#studentSn#
|
|
|
@}
|
|
|
@if(!isEmpty(studentName)){
|
|
|
and t2.student_name =#studentName#
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deleteStudentHandsOnTaskStepByIds
|
|
|
===
|
|
|
|
|
|
* 批量删除
|
|
|
|
|
|
delete from student_hands_on_task_step where find_in_set(student_hands_on_task_step_id,#ids#)
|
|
|
|
|
|
|
|
|
|
|
|
getByIds
|
|
|
===
|
|
|
|
|
|
select * from student_hands_on_task_step where find_in_set(student_hands_on_task_step_id,#ids#)
|
|
|
|
|
|
|
|
|
updateGivenByIds
|
|
|
===
|
|
|
|
|
|
* 批量更新指定字段,无论此字段是否有值
|
|
|
|
|
|
update student_hands_on_task_step
|
|
|
set
|
|
|
@if(contain("teacherOpenCourseId",_given)){
|
|
|
@if(isEmpty(teacherOpenCourseId)){
|
|
|
teacher_open_course_id = null ,
|
|
|
@}else{
|
|
|
teacher_open_course_id = #teacherOpenCourseId# ,
|
|
|
@}
|
|
|
@}
|
|
|
@if(contain("handsOnId",_given)){
|
|
|
@if(isEmpty(handsOnId)){
|
|
|
hands_on_id = null ,
|
|
|
@}else{
|
|
|
hands_on_id = #handsOnId# ,
|
|
|
@}
|
|
|
@}
|
|
|
@if(contain("handsOnTaskId",_given)){
|
|
|
@if(isEmpty(handsOnTaskId)){
|
|
|
hands_on_task_id = null ,
|
|
|
@}else{
|
|
|
hands_on_task_id = #handsOnTaskId# ,
|
|
|
@}
|
|
|
@}
|
|
|
@if(contain("stem",_given)){
|
|
|
@if(isEmpty(stem)){
|
|
|
stem = null ,
|
|
|
@}else{
|
|
|
stem = #stem# ,
|
|
|
@}
|
|
|
@}
|
|
|
@if(contain("theoryScore",_given)){
|
|
|
@if(isEmpty(theoryScore)){
|
|
|
theory_score = null ,
|
|
|
@}else{
|
|
|
theory_score = #theoryScore# ,
|
|
|
@}
|
|
|
@}
|
|
|
@if(contain("createTime",_given)){
|
|
|
@if(isEmpty(createTime)){
|
|
|
create_time = null ,
|
|
|
@}else{
|
|
|
create_time = #createTime# ,
|
|
|
@}
|
|
|
@}
|
|
|
@if(contain("orgId",_given)){
|
|
|
@if(isEmpty(orgId)){
|
|
|
org_id = null ,
|
|
|
@}else{
|
|
|
org_id = #orgId# ,
|
|
|
@}
|
|
|
@}
|
|
|
@if(contain("userId",_given)){
|
|
|
@if(isEmpty(userId)){
|
|
|
user_id = null ,
|
|
|
@}else{
|
|
|
user_id = #userId# ,
|
|
|
@}
|
|
|
@}
|
|
|
@if(contain("teacherId",_given)){
|
|
|
@if(isEmpty(teacherId)){
|
|
|
teacher_id = null ,
|
|
|
@}else{
|
|
|
teacher_id = #teacherId# ,
|
|
|
@}
|
|
|
@}
|
|
|
@if(contain("studentId",_given)){
|
|
|
@if(isEmpty(studentId)){
|
|
|
student_id = null ,
|
|
|
@}else{
|
|
|
student_id = #studentId# ,
|
|
|
@}
|
|
|
@}
|
|
|
student_hands_on_task_step_id = student_hands_on_task_step_id
|
|
|
where find_in_set(student_hands_on_task_step_id,#studentHandsOnTaskStepIdPlural#)
|
|
|
|
|
|
|
|
|
|
|
|
getStudentHandsOnTaskStepValues
|
|
|
===
|
|
|
|
|
|
* 根据不为空的参数进行查询
|
|
|
|
|
|
select t.*
|
|
|
from student_hands_on_task_step t
|
|
|
where 1=1
|
|
|
@if(!isEmpty(studentHandsOnTaskStepId)){
|
|
|
and t.student_hands_on_task_step_id =#studentHandsOnTaskStepId#
|
|
|
@}
|
|
|
@if(!isEmpty(teacherOpenCourseId)){
|
|
|
and t.teacher_open_course_id =#teacherOpenCourseId#
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnId)){
|
|
|
and t.hands_on_id =#handsOnId#
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnTaskId)){
|
|
|
and t.hands_on_task_id =#handsOnTaskId#
|
|
|
@}
|
|
|
@if(!isEmpty(stem)){
|
|
|
and t.stem =#stem#
|
|
|
@}
|
|
|
@if(!isEmpty(theoryScore)){
|
|
|
and t.theory_score =#theoryScore#
|
|
|
@}
|
|
|
@if(!isEmpty(createTime)){
|
|
|
and t.create_time =#createTime#
|
|
|
@}
|
|
|
@if(!isEmpty(orgId)){
|
|
|
and t.org_id =#orgId#
|
|
|
@}
|
|
|
@if(!isEmpty(userId)){
|
|
|
and t.user_id =#userId#
|
|
|
@}
|
|
|
@if(!isEmpty(teacherId)){
|
|
|
and t.teacher_id =#teacherId#
|
|
|
@}
|
|
|
@if(!isEmpty(studentId)){
|
|
|
and t.student_id =#studentId#
|
|
|
@}
|
|
|
|
|
|
|
|
|
getValuesByQuery
|
|
|
===
|
|
|
|
|
|
* 根据不为空的参数进行查询
|
|
|
|
|
|
select t.*
|
|
|
from student_hands_on_task_step t
|
|
|
where 1=1 and #function("studentHandsOnTaskStep.query")#
|
|
|
@if(!isEmpty(studentHandsOnTaskStepId)){
|
|
|
and t.student_hands_on_task_step_id =#studentHandsOnTaskStepId#
|
|
|
@}
|
|
|
@if(!isEmpty(studentHandsOnTaskStepIdPlural)){
|
|
|
and find_in_set(t.student_hands_on_task_step_id,#studentHandsOnTaskStepIdPlural#)
|
|
|
@}
|
|
|
@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(handsOnId)){
|
|
|
and t.hands_on_id =#handsOnId#
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnIdPlural)){
|
|
|
and find_in_set(t.hands_on_id,#handsOnIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnTaskId)){
|
|
|
and t.hands_on_task_id =#handsOnTaskId#
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnTaskIdPlural)){
|
|
|
and find_in_set(t.hands_on_task_id,#handsOnTaskIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(stem)){
|
|
|
and t.stem =#stem#
|
|
|
@}
|
|
|
@if(!isEmpty(theoryScore)){
|
|
|
and t.theory_score =#theoryScore#
|
|
|
@}
|
|
|
@if(!isEmpty(createTime)){
|
|
|
and t.create_time =#createTime#
|
|
|
@}
|
|
|
@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(teacherId)){
|
|
|
and t.teacher_id =#teacherId#
|
|
|
@}
|
|
|
@if(!isEmpty(teacherIdPlural)){
|
|
|
and find_in_set(t.teacher_id,#teacherIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(studentId)){
|
|
|
and t.student_id =#studentId#
|
|
|
@}
|
|
|
@if(!isEmpty(studentIdPlural)){
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
@}
|
|
|
|
|
|
|
|
|
getValuesByQueryNotWithPermission
|
|
|
===
|
|
|
|
|
|
* 根据不为空的参数进行查询(不包含权限)
|
|
|
|
|
|
select t.*
|
|
|
from student_hands_on_task_step t
|
|
|
where 1=1
|
|
|
@if(!isEmpty(studentHandsOnTaskStepId)){
|
|
|
and t.student_hands_on_task_step_id =#studentHandsOnTaskStepId#
|
|
|
@}
|
|
|
@if(!isEmpty(studentHandsOnTaskStepIdPlural)){
|
|
|
and find_in_set(t.student_hands_on_task_step_id,#studentHandsOnTaskStepIdPlural#)
|
|
|
@}
|
|
|
@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(handsOnId)){
|
|
|
and t.hands_on_id =#handsOnId#
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnIdPlural)){
|
|
|
and find_in_set(t.hands_on_id,#handsOnIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnTaskId)){
|
|
|
and t.hands_on_task_id =#handsOnTaskId#
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnTaskIdPlural)){
|
|
|
and find_in_set(t.hands_on_task_id,#handsOnTaskIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(stem)){
|
|
|
and t.stem =#stem#
|
|
|
@}
|
|
|
@if(!isEmpty(theoryScore)){
|
|
|
and t.theory_score =#theoryScore#
|
|
|
@}
|
|
|
@if(!isEmpty(createTime)){
|
|
|
and t.create_time =#createTime#
|
|
|
@}
|
|
|
@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(teacherId)){
|
|
|
and t.teacher_id =#teacherId#
|
|
|
@}
|
|
|
@if(!isEmpty(teacherIdPlural)){
|
|
|
and find_in_set(t.teacher_id,#teacherIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(studentId)){
|
|
|
and t.student_id =#studentId#
|
|
|
@}
|
|
|
@if(!isEmpty(studentIdPlural)){
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(courseType)){
|
|
|
and t.course_type =#courseType#
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
getExcelValues
|
|
|
===
|
|
|
|
|
|
* 根据不为空的参数进行查询导入需要的参数
|
|
|
|
|
|
SELECT * FROM (
|
|
|
(
|
|
|
select
|
|
|
MAX(LENGTH(t.teacher_open_course_id)) teacher_open_course_id,
|
|
|
MAX(LENGTH(t.hands_on_id)) hands_on_id,
|
|
|
MAX(LENGTH(t.hands_on_task_id)) hands_on_task_id,
|
|
|
MAX(LENGTH(t.stem)) stem,
|
|
|
MAX(LENGTH(t.question_type)) question_type,
|
|
|
MAX(LENGTH(t.my_options)) my_options,
|
|
|
MAX(LENGTH(t.right_key)) right_key,
|
|
|
MAX(LENGTH(t.theory_status)) theory_status,
|
|
|
MAX(LENGTH(t.theory_score)) theory_score,
|
|
|
MAX(LENGTH(t.create_time)) create_time,
|
|
|
MAX(LENGTH(t.teacher_id)) teacher_id,
|
|
|
MAX(LENGTH(t.student_id)) student_id
|
|
|
from student_hands_on_task_step t
|
|
|
where 1=1 and #function("studentHandsOnTaskStep.query")#
|
|
|
@if(!isEmpty(studentHandsOnTaskStepId)){
|
|
|
and t.student_hands_on_task_step_id =#studentHandsOnTaskStepId#
|
|
|
@}
|
|
|
@if(!isEmpty(studentHandsOnTaskStepIdPlural)){
|
|
|
and find_in_set(t.student_hands_on_task_step_id,#studentHandsOnTaskStepIdPlural#)
|
|
|
@}
|
|
|
@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(handsOnId)){
|
|
|
and t.hands_on_id =#handsOnId#
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnIdPlural)){
|
|
|
and find_in_set(t.hands_on_id,#handsOnIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnTaskId)){
|
|
|
and t.hands_on_task_id =#handsOnTaskId#
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnTaskIdPlural)){
|
|
|
and find_in_set(t.hands_on_task_id,#handsOnTaskIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(stem)){
|
|
|
and t.stem =#stem#
|
|
|
@}
|
|
|
@if(!isEmpty(theoryScore)){
|
|
|
and t.theory_score =#theoryScore#
|
|
|
@}
|
|
|
@if(!isEmpty(createTime)){
|
|
|
and t.create_time =#createTime#
|
|
|
@}
|
|
|
@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(teacherId)){
|
|
|
and t.teacher_id =#teacherId#
|
|
|
@}
|
|
|
@if(!isEmpty(teacherIdPlural)){
|
|
|
and find_in_set(t.teacher_id,#teacherIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(studentId)){
|
|
|
and t.student_id =#studentId#
|
|
|
@}
|
|
|
@if(!isEmpty(studentIdPlural)){
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
@}
|
|
|
)
|
|
|
UNION ALL
|
|
|
(
|
|
|
select
|
|
|
t.teacher_open_course_id ,
|
|
|
t.hands_on_id ,
|
|
|
t.hands_on_task_id ,
|
|
|
t.stem ,
|
|
|
t.question_type ,
|
|
|
t.my_options ,
|
|
|
t.right_key ,
|
|
|
t.theory_status ,
|
|
|
t.theory_score ,
|
|
|
t.create_time ,
|
|
|
t.teacher_id ,
|
|
|
t.student_id
|
|
|
from student_hands_on_task_step t
|
|
|
where 1=1 and #function("studentHandsOnTaskStep.query")#
|
|
|
@if(!isEmpty(studentHandsOnTaskStepId)){
|
|
|
and t.student_hands_on_task_step_id =#studentHandsOnTaskStepId#
|
|
|
@}
|
|
|
@if(!isEmpty(studentHandsOnTaskStepIdPlural)){
|
|
|
and find_in_set(t.student_hands_on_task_step_id,#studentHandsOnTaskStepIdPlural#)
|
|
|
@}
|
|
|
@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(handsOnId)){
|
|
|
and t.hands_on_id =#handsOnId#
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnIdPlural)){
|
|
|
and find_in_set(t.hands_on_id,#handsOnIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnTaskId)){
|
|
|
and t.hands_on_task_id =#handsOnTaskId#
|
|
|
@}
|
|
|
@if(!isEmpty(handsOnTaskIdPlural)){
|
|
|
and find_in_set(t.hands_on_task_id,#handsOnTaskIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(stem)){
|
|
|
and t.stem =#stem#
|
|
|
@}
|
|
|
@if(!isEmpty(theoryScore)){
|
|
|
and t.theory_score =#theoryScore#
|
|
|
@}
|
|
|
@if(!isEmpty(createTime)){
|
|
|
and t.create_time =#createTime#
|
|
|
@}
|
|
|
@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(teacherId)){
|
|
|
and t.teacher_id =#teacherId#
|
|
|
@}
|
|
|
@if(!isEmpty(teacherIdPlural)){
|
|
|
and find_in_set(t.teacher_id,#teacherIdPlural#)
|
|
|
@}
|
|
|
@if(!isEmpty(studentId)){
|
|
|
and t.student_id =#studentId#
|
|
|
@}
|
|
|
@if(!isEmpty(studentIdPlural)){
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
@}
|
|
|
)
|
|
|
)t
|
|
|
|