|
@@ -92,26 +92,26 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
|
|
|
|
|
|
|
|
List<CourseSchedule> findMusicGroupAllCourseSchedules(@Param("musicGroupId") String musicGroupId,
|
|
List<CourseSchedule> findMusicGroupAllCourseSchedules(@Param("musicGroupId") String musicGroupId,
|
|
- @Param("groupType") String groupType);
|
|
|
|
|
|
+ @Param("groupType") String groupType);
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @describe 获取教师在指定时间的前一节课程
|
|
|
|
- * @author Joburgess
|
|
|
|
- * @date 2020.10.21
|
|
|
|
* @param startClassTime:
|
|
* @param startClassTime:
|
|
* @param teacherId:
|
|
* @param teacherId:
|
|
* @return com.ym.mec.biz.dal.entity.CourseSchedule
|
|
* @return com.ym.mec.biz.dal.entity.CourseSchedule
|
|
|
|
+ * @describe 获取教师在指定时间的前一节课程
|
|
|
|
+ * @author Joburgess
|
|
|
|
+ * @date 2020.10.21
|
|
*/
|
|
*/
|
|
CourseSchedule getTeacherPrevCourseWithStartTime(@Param("startClassTime") Date startClassTime,
|
|
CourseSchedule getTeacherPrevCourseWithStartTime(@Param("startClassTime") Date startClassTime,
|
|
@Param("teacherId") Integer teacherId);
|
|
@Param("teacherId") Integer teacherId);
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @describe 获取教师在指定时间前有签到的课程
|
|
|
|
- * @author Joburgess
|
|
|
|
- * @date 2020.10.21
|
|
|
|
* @param startClassTime:
|
|
* @param startClassTime:
|
|
* @param teacherId:
|
|
* @param teacherId:
|
|
* @return com.ym.mec.biz.dal.entity.CourseSchedule
|
|
* @return com.ym.mec.biz.dal.entity.CourseSchedule
|
|
|
|
+ * @describe 获取教师在指定时间前有签到的课程
|
|
|
|
+ * @author Joburgess
|
|
|
|
+ * @date 2020.10.21
|
|
*/
|
|
*/
|
|
CourseSchedule getTeacherAttendanceCourseBeforeStartTime(@Param("startClassTime") Date startClassTime,
|
|
CourseSchedule getTeacherAttendanceCourseBeforeStartTime(@Param("startClassTime") Date startClassTime,
|
|
@Param("teacherId") Integer teacherId);
|
|
@Param("teacherId") Integer teacherId);
|
|
@@ -146,29 +146,29 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
@Param("userIds") List<Integer> userIds);
|
|
@Param("userIds") List<Integer> userIds);
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * @param classGroupId:
|
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.entity.CourseSchedule>
|
|
* @describe 获取班级上未开始的课程
|
|
* @describe 获取班级上未开始的课程
|
|
* @author Joburgess
|
|
* @author Joburgess
|
|
* @date 2020.11.05
|
|
* @date 2020.11.05
|
|
- * @param classGroupId:
|
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.entity.CourseSchedule>
|
|
|
|
*/
|
|
*/
|
|
List<CourseSchedule> getClassGroupNotStartCourse(@Param("classGroupId") Long classGroupId);
|
|
List<CourseSchedule> getClassGroupNotStartCourse(@Param("classGroupId") Long classGroupId);
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * @param classGroupId:
|
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.entity.CourseSchedule>
|
|
* @describe 获取班级上的课程
|
|
* @describe 获取班级上的课程
|
|
* @author qnc99
|
|
* @author qnc99
|
|
* @date 2020/12/8 0008
|
|
* @date 2020/12/8 0008
|
|
- * @param classGroupId:
|
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.entity.CourseSchedule>
|
|
|
|
*/
|
|
*/
|
|
List<CourseSchedule> getClassGroupCourses(@Param("classGroupId") Long classGroupId);
|
|
List<CourseSchedule> getClassGroupCourses(@Param("classGroupId") Long classGroupId);
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * @param courseIds:
|
|
|
|
+ * @return java.util.List<java.lang.Long>
|
|
* @describe 统计课程上被合课程的数量
|
|
* @describe 统计课程上被合课程的数量
|
|
* @author qnc99
|
|
* @author qnc99
|
|
* @date 2020/12/8 0008
|
|
* @date 2020/12/8 0008
|
|
- * @param courseIds:
|
|
|
|
- * @return java.util.List<java.lang.Long>
|
|
|
|
*/
|
|
*/
|
|
List<Map<Long, Long>> countCourseMergeCourseNum(@Param("courseIds") List<Long> courseIds);
|
|
List<Map<Long, Long>> countCourseMergeCourseNum(@Param("courseIds") List<Long> courseIds);
|
|
|
|
|
|
@@ -699,7 +699,7 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
* @param status
|
|
* @param status
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- List<CourseSchedule> findCoursesByClassGroupId(@Param("classGroupId") Integer classGroupId,@Param("status") CourseStatusEnum status);
|
|
|
|
|
|
+ List<CourseSchedule> findCoursesByClassGroupId(@Param("classGroupId") Integer classGroupId, @Param("status") CourseStatusEnum status);
|
|
|
|
|
|
/**
|
|
/**
|
|
* @param courseScheduleId: 课程编号
|
|
* @param courseScheduleId: 课程编号
|
|
@@ -1071,7 +1071,7 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
List<Map<String, Long>> countTotalCourseScheduleNum(@Param("vipGroupIds") List<String> vipGroupIds, @Param("groupType") String groupType);
|
|
List<Map<String, Long>> countTotalCourseScheduleNum(@Param("vipGroupIds") List<String> vipGroupIds, @Param("groupType") String groupType);
|
|
|
|
|
|
int countTotalCourseScheduleNumWithGroup(@Param("groupId") String groupId,
|
|
int countTotalCourseScheduleNumWithGroup(@Param("groupId") String groupId,
|
|
- @Param("groupType") String groupType);
|
|
|
|
|
|
+ @Param("groupType") String groupType);
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取当前课时(已上)
|
|
* 获取当前课时(已上)
|
|
@@ -1297,7 +1297,7 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
CourseSchedule queryStudentContinueCourse(@Param("courseSchedule") CourseSchedule courseSchedule,
|
|
CourseSchedule queryStudentContinueCourse(@Param("courseSchedule") CourseSchedule courseSchedule,
|
|
- @Param("continueCourseTime") String continueCourseTime, @Param("endDateTime") String endDateTime);
|
|
|
|
|
|
+ @Param("continueCourseTime") String continueCourseTime, @Param("endDateTime") String endDateTime);
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取当前课程,下一次连堂课
|
|
* 获取当前课程,下一次连堂课
|
|
@@ -1307,7 +1307,7 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
CourseSchedule queryTeacherContinueCourse(@Param("courseSchedule") CourseSchedule courseSchedule,
|
|
CourseSchedule queryTeacherContinueCourse(@Param("courseSchedule") CourseSchedule courseSchedule,
|
|
- @Param("continueCourseTime") String continueCourseTime, @Param("endDateTime") String endDateTime);
|
|
|
|
|
|
+ @Param("continueCourseTime") String continueCourseTime, @Param("endDateTime") String endDateTime);
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取单节课时长
|
|
* 获取单节课时长
|
|
@@ -1372,13 +1372,13 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
List<Map<Long, String>> queryTeacherName(@Param("courseScheduleIds") List<Long> courseScheduleIds);
|
|
List<Map<Long, String>> queryTeacherName(@Param("courseScheduleIds") List<Long> courseScheduleIds);
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @describe 统计学生在指定周期内的vip课数量
|
|
|
|
- * @author Joburgess
|
|
|
|
- * @date 2020.04.28
|
|
|
|
* @param studentIds:
|
|
* @param studentIds:
|
|
* @param startTime:
|
|
* @param startTime:
|
|
* @param endTime:
|
|
* @param endTime:
|
|
- * @return java.util.List<java.util.Map<java.lang.Integer,java.lang.Integer>>
|
|
|
|
|
|
+ * @return java.util.List<java.util.Map < java.lang.Integer, java.lang.Integer>>
|
|
|
|
+ * @describe 统计学生在指定周期内的vip课数量
|
|
|
|
+ * @author Joburgess
|
|
|
|
+ * @date 2020.04.28
|
|
*/
|
|
*/
|
|
List<Map<Integer, Long>> countStudentVipCoursesWithDate(@Param("studentIds") List<Integer> studentIds,
|
|
List<Map<Integer, Long>> countStudentVipCoursesWithDate(@Param("studentIds") List<Integer> studentIds,
|
|
@Param("startTime") Date startTime,
|
|
@Param("startTime") Date startTime,
|
|
@@ -1387,24 +1387,24 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @describe 统计学生在指定周期内的付费网管课数量
|
|
|
|
- * @author Joburgess
|
|
|
|
- * @date 2020.05.06
|
|
|
|
* @param studentIds:
|
|
* @param studentIds:
|
|
* @param startTime:
|
|
* @param startTime:
|
|
* @param endTime:
|
|
* @param endTime:
|
|
- * @return java.util.List<java.util.Map<java.lang.Integer,java.lang.Long>>
|
|
|
|
|
|
+ * @return java.util.List<java.util.Map < java.lang.Integer, java.lang.Long>>
|
|
|
|
+ * @describe 统计学生在指定周期内的付费网管课数量
|
|
|
|
+ * @author Joburgess
|
|
|
|
+ * @date 2020.05.06
|
|
*/
|
|
*/
|
|
List<Map<Integer, Long>> countStudentPayPracticeCoursesWithDate(@Param("studentIds") List<Integer> studentIds,
|
|
List<Map<Integer, Long>> countStudentPayPracticeCoursesWithDate(@Param("studentIds") List<Integer> studentIds,
|
|
@Param("startTime") Date startTime,
|
|
@Param("startTime") Date startTime,
|
|
@Param("endTime") Date endTime);
|
|
@Param("endTime") Date endTime);
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * @param studentIds:
|
|
|
|
+ * @return java.util.List<java.util.Map < java.lang.Integer, java.lang.Integer>>
|
|
* @describe 统计学生在未来的vip课数量
|
|
* @describe 统计学生在未来的vip课数量
|
|
* @author Joburgess
|
|
* @author Joburgess
|
|
* @date 2020.04.28
|
|
* @date 2020.04.28
|
|
- * @param studentIds:
|
|
|
|
- * @return java.util.List<java.util.Map<java.lang.Integer,java.lang.Integer>>
|
|
|
|
*/
|
|
*/
|
|
List<Map<Integer, Long>> countStudentVipCoursesInFuture(@Param("studentIds") List<Integer> studentIds);
|
|
List<Map<Integer, Long>> countStudentVipCoursesInFuture(@Param("studentIds") List<Integer> studentIds);
|
|
|
|
|
|
@@ -1423,13 +1423,13 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* @param courseId:
|
|
* @param courseId:
|
|
- * @param isLock: 冻结状态:1、冻结,0、正常
|
|
|
|
|
|
+ * @param isLock: 冻结状态:1、冻结,0、正常
|
|
* @return int
|
|
* @return int
|
|
* @describe 通过班级编号更改课程的冻结状态
|
|
* @describe 通过班级编号更改课程的冻结状态
|
|
* @author zouxuan
|
|
* @author zouxuan
|
|
*/
|
|
*/
|
|
int batchUpdateLockByCourseIds(@Param("courseId") List<Long> courseId,
|
|
int batchUpdateLockByCourseIds(@Param("courseId") List<Long> courseId,
|
|
- @Param("isLock") Integer isLock);
|
|
|
|
|
|
+ @Param("isLock") Integer isLock);
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1547,6 +1547,7 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取用户课程信息
|
|
* 获取用户课程信息
|
|
|
|
+ *
|
|
* @param studentIds
|
|
* @param studentIds
|
|
* @param groupType
|
|
* @param groupType
|
|
* @return
|
|
* @return
|
|
@@ -1557,6 +1558,7 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取上一次连堂课
|
|
* 获取上一次连堂课
|
|
|
|
+ *
|
|
* @param classGroupId
|
|
* @param classGroupId
|
|
* @param startTime
|
|
* @param startTime
|
|
* @param teacherId
|
|
* @param teacherId
|
|
@@ -1569,6 +1571,7 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取课程组已结束最后一节课时间
|
|
* 获取课程组已结束最后一节课时间
|
|
|
|
+ *
|
|
* @param vipGroupIds
|
|
* @param vipGroupIds
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@@ -1576,6 +1579,7 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取课程状态列表
|
|
* 获取课程状态列表
|
|
|
|
+ *
|
|
* @param courseScheduleIds
|
|
* @param courseScheduleIds
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@@ -1583,6 +1587,7 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取第一节课时间
|
|
* 获取第一节课时间
|
|
|
|
+ *
|
|
* @param practiceGroupId
|
|
* @param practiceGroupId
|
|
* @param groupType
|
|
* @param groupType
|
|
* @return
|
|
* @return
|
|
@@ -1591,6 +1596,7 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取最后一节课时间
|
|
* 获取最后一节课时间
|
|
|
|
+ *
|
|
* @param practiceGroupId
|
|
* @param practiceGroupId
|
|
* @param groupType
|
|
* @param groupType
|
|
* @return
|
|
* @return
|
|
@@ -1599,12 +1605,14 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 重置上课学生人数
|
|
* 重置上课学生人数
|
|
|
|
+ *
|
|
* @param courseScheduleId
|
|
* @param courseScheduleId
|
|
*/
|
|
*/
|
|
void resetStudentNum(@Param("courseScheduleId") List<Long> courseScheduleId);
|
|
void resetStudentNum(@Param("courseScheduleId") List<Long> courseScheduleId);
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取当前班级列表的所有未开始的课程
|
|
* 获取当前班级列表的所有未开始的课程
|
|
|
|
+ *
|
|
* @param classGroupIds
|
|
* @param classGroupIds
|
|
* @param teacherId
|
|
* @param teacherId
|
|
* @param teacherRole
|
|
* @param teacherRole
|
|
@@ -1614,6 +1622,7 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 当前班级是否有未开始的课程
|
|
* 当前班级是否有未开始的课程
|
|
|
|
+ *
|
|
* @param classGroupIds
|
|
* @param classGroupIds
|
|
* @param teacherId
|
|
* @param teacherId
|
|
* @return
|
|
* @return
|
|
@@ -1623,6 +1632,7 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 查询班级未上的课程类型对应的时长
|
|
* 查询班级未上的课程类型对应的时长
|
|
|
|
+ *
|
|
* @param classGroupIdList
|
|
* @param classGroupIdList
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@@ -1630,34 +1640,36 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.dto.CourseRepeatCheckDto>
|
|
* @describe 获取检测课程冲突需要的数据
|
|
* @describe 获取检测课程冲突需要的数据
|
|
* @author qnc99
|
|
* @author qnc99
|
|
* @date 2020/11/25 0025
|
|
* @date 2020/11/25 0025
|
|
- * @return java.util.List<com.ym.mec.biz.dal.dto.CourseRepeatCheckDto>
|
|
|
|
*/
|
|
*/
|
|
List<CourseRepeatCheckDto> getCourseRepeatCheckInfos();
|
|
List<CourseRepeatCheckDto> getCourseRepeatCheckInfos();
|
|
|
|
|
|
- CourseSchedule getLock (long courseId);
|
|
|
|
|
|
+ CourseSchedule getLock(long courseId);
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * @param courseId:
|
|
|
|
+ * @return int
|
|
* @describe 统计指定课程合并的课程数量
|
|
* @describe 统计指定课程合并的课程数量
|
|
* @author qnc99
|
|
* @author qnc99
|
|
* @date 2020/11/27 0027
|
|
* @date 2020/11/27 0027
|
|
- * @param courseId:
|
|
|
|
- * @return int
|
|
|
|
*/
|
|
*/
|
|
int countCourseMergeTime(@Param("courseId") Long courseId);
|
|
int countCourseMergeTime(@Param("courseId") Long courseId);
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取班级剩余的课程类型和课程数量
|
|
* 获取班级剩余的课程类型和课程数量
|
|
- * @author zouxuan
|
|
|
|
|
|
+ *
|
|
* @param classGroupId
|
|
* @param classGroupId
|
|
* @return
|
|
* @return
|
|
|
|
+ * @author zouxuan
|
|
*/
|
|
*/
|
|
List<Map<String, Integer>> querySubCourseNumMap(@Param("classGroupId") Integer classGroupId);
|
|
List<Map<String, Integer>> querySubCourseNumMap(@Param("classGroupId") Integer classGroupId);
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取所选班级最大剩余课时
|
|
* 获取所选班级最大剩余课时
|
|
|
|
+ *
|
|
* @param classGroupIds
|
|
* @param classGroupIds
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@@ -1665,28 +1677,48 @@ public interface CourseScheduleDao extends BaseDAO<Long, CourseSchedule> {
|
|
|
|
|
|
/**
|
|
/**
|
|
* 根据学员和班级列表获取未开始的课程列表
|
|
* 根据学员和班级列表获取未开始的课程列表
|
|
- * @author zouxuan
|
|
|
|
|
|
+ *
|
|
* @param classGroupIds
|
|
* @param classGroupIds
|
|
* @param studentIds
|
|
* @param studentIds
|
|
* @return
|
|
* @return
|
|
|
|
+ * @author zouxuan
|
|
*/
|
|
*/
|
|
List<Long> queryStudentNotStartByClassIdsAndStudentIds(@Param("classGroupIds") List<Integer> classGroupIds,
|
|
List<Long> queryStudentNotStartByClassIdsAndStudentIds(@Param("classGroupIds") List<Integer> classGroupIds,
|
|
@Param("studentIds") List<Integer> studentIds);
|
|
@Param("studentIds") List<Integer> studentIds);
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取没有学员的课程
|
|
* 获取没有学员的课程
|
|
- * @author zouxuan
|
|
|
|
|
|
+ *
|
|
* @param courseIds
|
|
* @param courseIds
|
|
* @return
|
|
* @return
|
|
|
|
+ * @author zouxuan
|
|
*/
|
|
*/
|
|
List<Long> findNoStudentCourseIds(@Param("courseIds") List<Long> courseIds);
|
|
List<Long> findNoStudentCourseIds(@Param("courseIds") List<Long> courseIds);
|
|
|
|
|
|
/**
|
|
/**
|
|
- *
|
|
|
|
* 根据班级编号获取未开始的主课
|
|
* 根据班级编号获取未开始的主课
|
|
- * @author zouxuan
|
|
|
|
|
|
+ *
|
|
* @param classGroupIds
|
|
* @param classGroupIds
|
|
* @return
|
|
* @return
|
|
|
|
+ * @author zouxuan
|
|
*/
|
|
*/
|
|
int findNoStartMasterCourseNum(@Param("classGroupIds") List<Integer> classGroupIds);
|
|
int findNoStartMasterCourseNum(@Param("classGroupIds") List<Integer> classGroupIds);
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 获取当前教务老师关联的课程组上该学员的所有剩余课程
|
|
|
|
+ *
|
|
|
|
+ * @param params
|
|
|
|
+ * @return
|
|
|
|
+ * @author zouxuan
|
|
|
|
+ */
|
|
|
|
+ List<StudentNoStartCoursesDto> queryStudentNoStartCourse(Map<String, Object> params);
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 获取当前教务老师关联的课程组上该学员的所有剩余课程
|
|
|
|
+ *
|
|
|
|
+ * @param params
|
|
|
|
+ * @return
|
|
|
|
+ * @author zouxuan
|
|
|
|
+ */
|
|
|
|
+ int countStudentNoStartCourse(Map<String, Object> params);
|
|
}
|
|
}
|