|
@@ -8,6 +8,7 @@ import com.ym.mec.common.dal.BaseDAO;
|
|
|
import org.apache.ibatis.annotations.Delete;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
+import org.apache.ibatis.annotations.Update;
|
|
|
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
@@ -138,6 +139,19 @@ public interface StudentAttendanceDao extends BaseDAO<Long, StudentAttendance> {
|
|
|
int countByCourseSchedule(Long courseScheduleId);
|
|
|
|
|
|
/**
|
|
|
+ * @describe 统计已发送到课提醒的人数
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2021/3/31 0031
|
|
|
+ * @param courseId:
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
+ @Select("SELECT COUNT(*) FROM student_attendance WHERE course_schedule_id_=#{courseId} AND normal_remind_=1")
|
|
|
+ int countNormalRemindNum(Long courseId);
|
|
|
+
|
|
|
+ @Update("UPDATE student_attendance SET normal_remind_=1 WHERE course_schedule_id_=#{courseId}")
|
|
|
+ int updateNormalRemind(@Param("courseId") Long courseId);
|
|
|
+
|
|
|
+ /**
|
|
|
* @describe 统计每节课上的学生数,排除学员自己请假的记录
|
|
|
* @author Joburgess
|
|
|
* @date 2019/12/26
|