@FetchSql("select count(1) from teacher_open_course_student_signin_setting "+
"where teacher_open_course_id = #teacherOpenCourseId# and teacher_open_course_student_signin_setting_status = 1 ")
privateIntegersigninSettingCount;
// 签到总人数
@FetchSql("select count(1) "+
"from teacher_open_course_student_signin_log t "+
"left join teacher_open_course_student_signin_setting ta on ta.teacher_open_course_student_signin_setting_id = t.teacher_open_course_student_signin_setting_id "+
and find_in_set(t.competition_detailed_status,#competitionDetailedStatuses#)
@}
@if(!isEmpty(competitionTechnicalName)){
and t.competition_technical_name =#competitionTechnicalName#
@}
@if(!isEmpty(competitionCarouselImage1)){
and t.competition_carousel_image1 =#competitionCarouselImage1#
@}
@if(!isEmpty(competitionHyperlinkUrl1)){
and t.competition_hyperlink_url1 =#competitionHyperlinkUrl1#
@}
@if(!isEmpty(competitionCarouselImage2)){
and t.competition_carousel_image2 =#competitionCarouselImage2#
@}
@if(!isEmpty(competitionHyperlinkUrl2)){
and t.competition_hyperlink_url2 =#competitionHyperlinkUrl2#
@}
@if(!isEmpty(competitionCarouselImage3)){
and t.competition_carousel_image3 =#competitionCarouselImage3#
@}
@if(!isEmpty(competitionHyperlinkUrl3)){
and t.competition_hyperlink_url3 =#competitionHyperlinkUrl3#
@}
@if(!isEmpty(competitionFreetrialStartTime)){
and t.competition_freetrial_start_time =#competitionFreetrialStartTime#
@}
@if(!isEmpty(competitionFreetrialEndTime)){
and t.competition_freetrial_end_time =#competitionFreetrialEndTime#
@}
ORDER BY t.competition_contest_start_time DESC
queryByCondition2Student
@ -210,6 +246,15 @@ queryByCondition2Student
c.resources_application_id,
c.class_ids,
c.excluded_student_ids,
c.competition_technical_name,
c.competition_carousel_image1,
c.competition_hyperlink_url1,
c.competition_carousel_image2,
c.competition_hyperlink_url2,
c.competition_carousel_image3,
c.competition_hyperlink_url3,
c.competition_freetrial_start_time,
c.competition_freetrial_end_time,
@if(showCompetitionGeneralization == 1){
c.competition_generalization,
@}
@ -340,6 +385,33 @@ queryByCondition2Student
@if(!isEmpty(competitionDetailedStatuses)){
and find_in_set(t.competition_detailed_status,#competitionDetailedStatuses#)
@}
@if(!isEmpty(competitionTechnicalName)){
and t.competition_technical_name =#competitionTechnicalName#
@}
@if(!isEmpty(competitionCarouselImage1)){
and t.competition_carousel_image1 =#competitionCarouselImage1#
@}
@if(!isEmpty(competitionHyperlinkUrl1)){
and t.competition_hyperlink_url1 =#competitionHyperlinkUrl1#
@}
@if(!isEmpty(competitionCarouselImage2)){
and t.competition_carousel_image2 =#competitionCarouselImage2#
@}
@if(!isEmpty(competitionHyperlinkUrl2)){
and t.competition_hyperlink_url2 =#competitionHyperlinkUrl2#
@}
@if(!isEmpty(competitionCarouselImage3)){
and t.competition_carousel_image3 =#competitionCarouselImage3#
@}
@if(!isEmpty(competitionHyperlinkUrl3)){
and t.competition_hyperlink_url3 =#competitionHyperlinkUrl3#
@}
@if(!isEmpty(competitionFreetrialStartTime)){
and t.competition_freetrial_start_time =#competitionFreetrialStartTime#
@}
@if(!isEmpty(competitionFreetrialEndTime)){
and t.competition_freetrial_end_time =#competitionFreetrialEndTime#
@}
ORDER BY t.competition_contest_start_time DESC
@ -398,6 +470,15 @@ getCompetitionValues
c.resources_application_id,
c.class_ids,
c.excluded_student_ids,
c.competition_technical_name,
c.competition_carousel_image1,
c.competition_hyperlink_url1,
c.competition_carousel_image2,
c.competition_hyperlink_url2,
c.competition_carousel_image3,
c.competition_hyperlink_url3,
c.competition_freetrial_start_time,
c.competition_freetrial_end_time,
(SELECT COUNT(*) FROM competition_students WHERE competition_id = c.competition_id) competition_student_number,
CASE WHEN c.competition_type = 2 THEN (SELECT COUNT(*) FROM competition_students WHERE competition_id = c.competition_id AND is_captain = 1) ELSE NULL END competition_team_number,
and t.resources_application_id =#resourcesApplicationId#
@}
@if(!isEmpty(competitionTechnicalName)){
and t.competition_technical_name =#competitionTechnicalName#
@}
@if(!isEmpty(competitionCarouselImage1)){
and t.competition_carousel_image1 =#competitionCarouselImage1#
@}
@if(!isEmpty(competitionHyperlinkUrl1)){
and t.competition_hyperlink_url1 =#competitionHyperlinkUrl1#
@}
@if(!isEmpty(competitionCarouselImage2)){
and t.competition_carousel_image2 =#competitionCarouselImage2#
@}
@if(!isEmpty(competitionHyperlinkUrl2)){
and t.competition_hyperlink_url2 =#competitionHyperlinkUrl2#
@}
@if(!isEmpty(competitionCarouselImage3)){
and t.competition_carousel_image3 =#competitionCarouselImage3#
@}
@if(!isEmpty(competitionHyperlinkUrl3)){
and t.competition_hyperlink_url3 =#competitionHyperlinkUrl3#
@}
@if(!isEmpty(competitionFreetrialStartTime)){
and t.competition_freetrial_start_time =#competitionFreetrialStartTime#
@}
@if(!isEmpty(competitionFreetrialEndTime)){
and t.competition_freetrial_end_time =#competitionFreetrialEndTime#
@}
getById
@ -539,6 +647,15 @@ getById
c.resources_application_id,
c.class_ids,
c.excluded_student_ids,
c.competition_technical_name,
c.competition_carousel_image1,
c.competition_hyperlink_url1,
c.competition_carousel_image2,
c.competition_hyperlink_url2,
c.competition_carousel_image3,
c.competition_hyperlink_url3,
c.competition_freetrial_start_time,
c.competition_freetrial_end_time,
(SELECT COUNT(*) FROM competition_students WHERE competition_id = c.competition_id) competition_student_number,
CASE WHEN c.competition_type = 2 THEN (SELECT COUNT(*) FROM competition_students WHERE competition_id = c.competition_id AND is_captain = 1) ELSE NULL END competition_team_number,
(SELECT group_concat(teacher_name ORDER BY find_in_set(teacher_id,c.competition_judge_ids)) FROM teacher where find_in_set(teacher_id,c.competition_judge_ids)) teacher_names,
c.competition_weight,
c.org_id,
@ -749,5 +875,32 @@ getValuesByQuery
@if(!isEmpty(competitionDetailedStatuses)){
and find_in_set(t.competition_detailed_status,#competitionDetailedStatuses#)
@}
@if(!isEmpty(competitionTechnicalName)){
and t.competition_technical_name =#competitionTechnicalName#
@}
@if(!isEmpty(competitionCarouselImage1)){
and t.competition_carousel_image1 =#competitionCarouselImage1#
@}
@if(!isEmpty(competitionHyperlinkUrl1)){
and t.competition_hyperlink_url1 =#competitionHyperlinkUrl1#
@}
@if(!isEmpty(competitionCarouselImage2)){
and t.competition_carousel_image2 =#competitionCarouselImage2#
@}
@if(!isEmpty(competitionHyperlinkUrl2)){
and t.competition_hyperlink_url2 =#competitionHyperlinkUrl2#
@}
@if(!isEmpty(competitionCarouselImage3)){
and t.competition_carousel_image3 =#competitionCarouselImage3#
@}
@if(!isEmpty(competitionHyperlinkUrl3)){
and t.competition_hyperlink_url3 =#competitionHyperlinkUrl3#
@}
@if(!isEmpty(competitionFreetrialStartTime)){
and t.competition_freetrial_start_time =#competitionFreetrialStartTime#
@}
@if(!isEmpty(competitionFreetrialEndTime)){
and t.competition_freetrial_end_time =#competitionFreetrialEndTime#