|
|
@ -1,7 +1,6 @@
|
|
|
|
queryByCondition
|
|
|
|
queryByCondition
|
|
|
|
===
|
|
|
|
===
|
|
|
|
* 根据不为空的参数进行分页查询
|
|
|
|
* 根据不为空的参数进行分页查询
|
|
|
|
|
|
|
|
|
|
|
|
select
|
|
|
|
select
|
|
|
|
@pageTag(){
|
|
|
|
@pageTag(){
|
|
|
|
t.*
|
|
|
|
t.*
|
|
|
@ -52,6 +51,39 @@ queryByCondition
|
|
|
|
@if(!isEmpty(studentIdPlural)){
|
|
|
|
@if(!isEmpty(studentIdPlural)){
|
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(studentScore)){
|
|
|
|
|
|
|
|
and t.student_score =#studentScore#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionType)){
|
|
|
|
|
|
|
|
and t.question_type =#questionType#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionTypePlural)){
|
|
|
|
|
|
|
|
and find_in_set(t.question_type,#questionTypePlural#)
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionScore)){
|
|
|
|
|
|
|
|
and t.question_score =#questionScore#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionStem)){
|
|
|
|
|
|
|
|
and t.question_stem =#questionStem#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionOptionA)){
|
|
|
|
|
|
|
|
and t.question_option_a =#questionOptionA#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionOptionB)){
|
|
|
|
|
|
|
|
and t.question_option_b =#questionOptionB#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionOptionC)){
|
|
|
|
|
|
|
|
and t.question_option_c =#questionOptionC#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionOptionD)){
|
|
|
|
|
|
|
|
and t.question_option_d =#questionOptionD#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionOptionE)){
|
|
|
|
|
|
|
|
and t.question_option_e =#questionOptionE#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionAnswer)){
|
|
|
|
|
|
|
|
and t.question_answer =#questionAnswer#
|
|
|
|
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
@ -69,7 +101,6 @@ queryByCondition
|
|
|
|
queryByConditionQuery
|
|
|
|
queryByConditionQuery
|
|
|
|
===
|
|
|
|
===
|
|
|
|
* 根据不为空的参数进行分页查询(无权限)
|
|
|
|
* 根据不为空的参数进行分页查询(无权限)
|
|
|
|
|
|
|
|
|
|
|
|
select
|
|
|
|
select
|
|
|
|
@pageTag(){
|
|
|
|
@pageTag(){
|
|
|
|
t.*
|
|
|
|
t.*
|
|
|
@ -118,6 +149,39 @@ queryByConditionQuery
|
|
|
|
@if(!isEmpty(studentIdPlural)){
|
|
|
|
@if(!isEmpty(studentIdPlural)){
|
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(studentScore)){
|
|
|
|
|
|
|
|
and t.student_score =#studentScore#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionType)){
|
|
|
|
|
|
|
|
and t.question_type =#questionType#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionTypePlural)){
|
|
|
|
|
|
|
|
and find_in_set(t.question_type,#questionTypePlural#)
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionScore)){
|
|
|
|
|
|
|
|
and t.question_score =#questionScore#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionStem)){
|
|
|
|
|
|
|
|
and t.question_stem =#questionStem#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionOptionA)){
|
|
|
|
|
|
|
|
and t.question_option_a =#questionOptionA#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionOptionB)){
|
|
|
|
|
|
|
|
and t.question_option_b =#questionOptionB#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionOptionC)){
|
|
|
|
|
|
|
|
and t.question_option_c =#questionOptionC#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionOptionD)){
|
|
|
|
|
|
|
|
and t.question_option_d =#questionOptionD#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionOptionE)){
|
|
|
|
|
|
|
|
and t.question_option_e =#questionOptionE#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionAnswer)){
|
|
|
|
|
|
|
|
and t.question_answer =#questionAnswer#
|
|
|
|
|
|
|
|
@}
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
@}
|
|
|
|
@}
|
|
|
@ -132,6 +196,116 @@ queryByConditionQuery
|
|
|
|
@}
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
studentScoreList
|
|
|
|
|
|
|
|
===
|
|
|
|
|
|
|
|
* 根据不为空的参数进行分页查询(无权限) 查询得分总和
|
|
|
|
|
|
|
|
select
|
|
|
|
|
|
|
|
@pageTag(){
|
|
|
|
|
|
|
|
tz.*
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
from (
|
|
|
|
|
|
|
|
select
|
|
|
|
|
|
|
|
t.student_id,
|
|
|
|
|
|
|
|
ta.student_sn,
|
|
|
|
|
|
|
|
ta.student_name,
|
|
|
|
|
|
|
|
t.teacher_open_course_question_setting_id,
|
|
|
|
|
|
|
|
sum(t.student_score) as sum_student_score
|
|
|
|
|
|
|
|
from teacher_open_course_question_log t
|
|
|
|
|
|
|
|
left join student ta on ta.student_id = t.student_id
|
|
|
|
|
|
|
|
where 1=1
|
|
|
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseQuestionLogId)){
|
|
|
|
|
|
|
|
and t.teacher_open_course_question_log_id =#teacherOpenCourseQuestionLogId#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseQuestionLogIdPlural)){
|
|
|
|
|
|
|
|
and find_in_set(t.teacher_open_course_question_log_id,#teacherOpenCourseQuestionLogIdPlural#)
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseQuestionSettingId)){
|
|
|
|
|
|
|
|
and t.teacher_open_course_question_setting_id =#teacherOpenCourseQuestionSettingId#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseQuestionSettingIdPlural)){
|
|
|
|
|
|
|
|
and find_in_set(t.teacher_open_course_question_setting_id,#teacherOpenCourseQuestionSettingIdPlural#)
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(resourcesQuestionSnapshotId)){
|
|
|
|
|
|
|
|
and t.resources_question_snapshot_id =#resourcesQuestionSnapshotId#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(resourcesQuestionSnapshotIdPlural)){
|
|
|
|
|
|
|
|
and find_in_set(t.resources_question_snapshot_id,#resourcesQuestionSnapshotIdPlural#)
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseQuestionLogAnswer)){
|
|
|
|
|
|
|
|
and t.teacher_open_course_question_log_answer =#teacherOpenCourseQuestionLogAnswer#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseQuestionLogUploadFile)){
|
|
|
|
|
|
|
|
and t.teacher_open_course_question_log_upload_file =#teacherOpenCourseQuestionLogUploadFile#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseQuestionLogAddTime)){
|
|
|
|
|
|
|
|
and t.teacher_open_course_question_log_add_time =#teacherOpenCourseQuestionLogAddTime#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(isEmpty(teacherOpenCourseQuestionLogStatus) && isEmpty(teacherOpenCourseQuestionLogStatusPlural)){
|
|
|
|
|
|
|
|
and t.teacher_open_course_question_log_status != 2
|
|
|
|
|
|
|
|
@}else{
|
|
|
|
|
|
|
|
@if(!isEmpty(teacherOpenCourseQuestionLogStatus)){
|
|
|
|
|
|
|
|
and t.teacher_open_course_question_log_status =#teacherOpenCourseQuestionLogStatus#
|
|
|
|
|
|
|
|
@}else if(!isEmpty(teacherOpenCourseQuestionLogStatusPlural)){
|
|
|
|
|
|
|
|
and find_in_set(t.teacher_open_course_question_log_status,#teacherOpenCourseQuestionLogStatusPlural#)
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(studentId)){
|
|
|
|
|
|
|
|
and t.student_id =#studentId#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(studentIdPlural)){
|
|
|
|
|
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(studentScore)){
|
|
|
|
|
|
|
|
and t.student_score =#studentScore#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionType)){
|
|
|
|
|
|
|
|
and t.question_type =#questionType#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionTypePlural)){
|
|
|
|
|
|
|
|
and find_in_set(t.question_type,#questionTypePlural#)
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionScore)){
|
|
|
|
|
|
|
|
and t.question_score =#questionScore#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionStem)){
|
|
|
|
|
|
|
|
and t.question_stem =#questionStem#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionOptionA)){
|
|
|
|
|
|
|
|
and t.question_option_a =#questionOptionA#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionOptionB)){
|
|
|
|
|
|
|
|
and t.question_option_b =#questionOptionB#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionOptionC)){
|
|
|
|
|
|
|
|
and t.question_option_c =#questionOptionC#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionOptionD)){
|
|
|
|
|
|
|
|
and t.question_option_d =#questionOptionD#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionOptionE)){
|
|
|
|
|
|
|
|
and t.question_option_e =#questionOptionE#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@if(!isEmpty(questionAnswer)){
|
|
|
|
|
|
|
|
and t.question_answer =#questionAnswer#
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
@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#)
|
|
|
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
group by
|
|
|
|
|
|
|
|
t.student_id,
|
|
|
|
|
|
|
|
ta.student_sn,
|
|
|
|
|
|
|
|
ta.student_name,
|
|
|
|
|
|
|
|
t.teacher_open_course_question_setting_id
|
|
|
|
|
|
|
|
)tz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deleteTeacherOpenCourseQuestionLogByIds
|
|
|
|
deleteTeacherOpenCourseQuestionLogByIds
|
|
|
|