|
|
|
@ -384,70 +384,66 @@ getGroupQuestionTypeCount
|
|
|
|
|
AND ta.course_info_status = 1
|
|
|
|
|
AND t.question_status = 1
|
|
|
|
|
AND tb.course_label_status = 1
|
|
|
|
|
@if(!isEmpty(courseLabelTypePlural)){
|
|
|
|
|
and find_in_set(tb.course_label_type, #courseLabelTypePlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(resourcesQuestionIds)){
|
|
|
|
|
and find_in_set(t.resources_question_id,#resourcesQuestionIds#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(resourcesQuestionId)){
|
|
|
|
|
and t.resources_question_id =#resourcesQuestionId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoIds)){
|
|
|
|
|
and find_in_set(t.course_info_id,#courseInfoIds#)
|
|
|
|
|
@if(!isEmpty(courseInfoIdPlural)){
|
|
|
|
|
and ta.course_info_full_id regexp #sputil.joinEx(@java.util.Arrays.asList(strUtil.splitToArray(courseInfoIdPlural, ',')), '|', '_', '_')#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseInfoId)){
|
|
|
|
|
and t.course_info_id =#courseInfoId#
|
|
|
|
|
and ta.course_info_full_id regexp #'_' + courseInfoId + '_'#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(questionType)){
|
|
|
|
|
and t.question_type =#questionType#
|
|
|
|
|
@if(!isEmpty(courseInfoFullId)){
|
|
|
|
|
and ta.course_info_full_id =#courseInfoFullId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(questionStatus)){
|
|
|
|
|
and t.question_status =#questionStatus#
|
|
|
|
|
@if(!isEmpty(courseInfoName)){
|
|
|
|
|
and ta.course_info_name like #'%'+courseInfoName+'%'#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(questionScore)){
|
|
|
|
|
and t.question_score =#questionScore#
|
|
|
|
|
@if(!isEmpty(courseInfoThumbnail)){
|
|
|
|
|
and ta.course_info_thumbnail =#courseInfoThumbnail#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(questionStem)){
|
|
|
|
|
and t.question_stem = #questionStem#
|
|
|
|
|
@if(!isEmpty(courseLabelId)){
|
|
|
|
|
and ta.course_label_id =#courseLabelId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(questionOptionA)){
|
|
|
|
|
and t.question_option_a =#questionOptionA#
|
|
|
|
|
@if(!isEmpty(courseLabelType)){
|
|
|
|
|
and tb.course_label_type like #'%'+courseLabelType+'%'#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(questionOptionB)){
|
|
|
|
|
and t.question_option_b =#questionOptionB#
|
|
|
|
|
@if(!isEmpty(courseLabelTypes)){
|
|
|
|
|
and find_in_set(tb.course_label_type, #courseLabelTypes#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(questionOptionC)){
|
|
|
|
|
and t.question_option_c =#questionOptionC#
|
|
|
|
|
@if(!isEmpty(courseInfoBasicsCount)){
|
|
|
|
|
and ta.course_info_basics_count =#courseInfoBasicsCount#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(questionOptionD)){
|
|
|
|
|
and t.question_option_d =#questionOptionD#
|
|
|
|
|
@if(!isEmpty(courseInfoContent)){
|
|
|
|
|
and ta.course_info_content =#courseInfoContent#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(questionOptionE)){
|
|
|
|
|
and t.question_option_e =#questionOptionE#
|
|
|
|
|
@if(!isEmpty(courseInfoStatus)){
|
|
|
|
|
and ta.course_info_status =#courseInfoStatus#
|
|
|
|
|
@}else{
|
|
|
|
|
and ta.course_info_status != 3
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(questionAnswer)){
|
|
|
|
|
and t.question_answer =#questionAnswer#
|
|
|
|
|
@if(!isEmpty(courseInfoType)){
|
|
|
|
|
and ta.course_info_type =#courseInfoType#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(questionAnalysis)){
|
|
|
|
|
and t.question_analysis =#questionAnalysis#
|
|
|
|
|
@if(!isEmpty(courseInfoParentId)){
|
|
|
|
|
and ta.course_info_parent_id =#courseInfoParentId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseVideoId)){
|
|
|
|
|
and ta.course_video_id =#courseVideoId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseCoursewareId)){
|
|
|
|
|
and ta.course_courseware_id =#courseCoursewareId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(courseEnclosureIds)){
|
|
|
|
|
and ta.course_enclosure_ids =#courseEnclosureIds#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(orgId)){
|
|
|
|
|
and t.org_id =#orgId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(orgIdPlural)){
|
|
|
|
|
and find_in_set(ifnull(t.org_id, 1), #orgIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(userId)){
|
|
|
|
|
and t.user_id =#userId#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(addType)){
|
|
|
|
|
and t.add_type =#addType#
|
|
|
|
|
@}
|
|
|
|
|
GROUP BY
|
|
|
|
|
t.question_type
|
|
|
|
|
ORDER BY
|
|
|
|
|
t.question_type ASC
|
|
|
|
|
group by 1
|
|
|
|
|
|
|
|
|
|
checkUnique
|
|
|
|
|
===
|
|
|
|
|