@ -114,17 +114,13 @@ public class TeacherOpenCourseStudentSigninSetting extends BaseEntity{
private Integer signinTotalCount ;
private Integer signinTotalCount ;
// 学生总人数
// 学生总人数
@FetchSql ( "select count(1) from student t where find_in_set(t.class_id, #schoolClassIdsIfAll#) " )
@FetchSql ( "select count(1) from student t where find_in_set(t.class_id, #schoolClassIdsRender#) " )
private Integer signinStudentTotalCount ;
private Integer signinStudentTotalCount ;
// 缺勤 schoolClassIds
// 缺勤 schoolClassIds
@FetchSql ( "select if((count(tc.student_id) - #signinTotalCount#) < 0, 0, count(tc.student_id) - #signinTotalCount#) " +
@FetchSql ( "select if((#signinStudentTotalCount# - #signinTotalCount#) < 0, 0, (#signinStudentTotalCount# - #signinTotalCount#))" )
"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 " +
"left join school_class tb on find_in_set(tb.class_id, ta.school_class_ids) " +
"left join student tc on tc.class_id = tb.class_id " +
"where t.teacher_open_course_id = #teacherOpenCourseId# " )
private Integer unsigninCount ;
private Integer unsigninCount ;
// 合计到课率 100为单位
// 合计到课率 100为单位