|
@@ -24,11 +24,11 @@ public interface CourseScheduleStudentPaymentDao extends BaseDAO<Long, CourseSch
|
|
|
int batchInsert(List<CourseScheduleStudentPayment> courseScheduleStudentPayments);
|
|
|
|
|
|
/**
|
|
|
+ * @param courseScheduleStudentPayments:
|
|
|
+ * @return int
|
|
|
* @describe 批量更新
|
|
|
* @author Joburgess
|
|
|
* @date 2020/1/10
|
|
|
- * @param courseScheduleStudentPayments:
|
|
|
- * @return int
|
|
|
*/
|
|
|
int batchUpdate(@Param("courseScheduleStudentPayments") List<CourseScheduleStudentPayment> courseScheduleStudentPayments);
|
|
|
|
|
@@ -115,15 +115,15 @@ public interface CourseScheduleStudentPaymentDao extends BaseDAO<Long, CourseSch
|
|
|
@Param("userId") Integer userId);
|
|
|
|
|
|
/**
|
|
|
- * @describe 统计团体下为开始课程学生数量
|
|
|
- * @author Joburgess
|
|
|
- * @date 2020.09.27
|
|
|
* @param groupId:
|
|
|
* @param groupType:
|
|
|
* @return int
|
|
|
+ * @describe 统计团体下为开始课程学生数量
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2020.09.27
|
|
|
*/
|
|
|
int countNotStartCourseStudentNumWithGroup(@Param("groupId") String groupId,
|
|
|
- @Param("groupType") GroupType groupType);
|
|
|
+ @Param("groupType") GroupType groupType);
|
|
|
|
|
|
/**
|
|
|
* @param vipGroupId: 小课编号
|
|
@@ -137,103 +137,110 @@ public interface CourseScheduleStudentPaymentDao extends BaseDAO<Long, CourseSch
|
|
|
@Param("teachMode") String teachMode);
|
|
|
|
|
|
int deleteStudentCourseScheduleByUserId(@Param("courseScheduleId") Long courseScheduleId, @Param("userIdList") List<Integer> userIdList);
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 根据乐团编号删除记录
|
|
|
+ *
|
|
|
* @param musicGroupId
|
|
|
* @return
|
|
|
*/
|
|
|
- int deleteByMusicGroupId(@Param("musicGroupId")String musicGroupId, @Param("groupType")GroupType groupType);
|
|
|
+ int deleteByMusicGroupId(@Param("musicGroupId") String musicGroupId, @Param("groupType") GroupType groupType);
|
|
|
|
|
|
/**
|
|
|
* 根据乐团编号,和groupTYpe获取学员剩余课程数
|
|
|
+ *
|
|
|
* @param musicGroupIds
|
|
|
* @param userId
|
|
|
* @param groupType
|
|
|
* @return
|
|
|
*/
|
|
|
- List<Map<String, Integer>> findStudentCourseNum(@Param("musicGroupIds") Set<String> musicGroupIds, @Param("userId")Integer userId, @Param("groupType")String groupType);
|
|
|
+ List<Map<String, Integer>> findStudentCourseNum(@Param("musicGroupIds") Set<String> musicGroupIds, @Param("userId") Integer userId, @Param("groupType") String groupType);
|
|
|
|
|
|
/**
|
|
|
- * @describe 统计指定乐团下学员课程数量
|
|
|
- * @author Joburgess
|
|
|
- * @date 2019/12/23
|
|
|
* @param groupType:
|
|
|
* @param groupId:
|
|
|
* @return int
|
|
|
+ * @describe 统计指定乐团下学员课程数量
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2019/12/23
|
|
|
*/
|
|
|
int countStudentCourseNumWithGroup(@Param("groupType") GroupType groupType,
|
|
|
@Param("groupId") String groupId);
|
|
|
|
|
|
/**
|
|
|
* 根据乐团,vip状态获取编号
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
Set<Integer> queryMusicStudentPer();
|
|
|
+
|
|
|
/**
|
|
|
* 根据乐团,vip状态获取编号
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
Set<Integer> queryVipStudentPer();
|
|
|
|
|
|
/**
|
|
|
+ * @param courseIds: 统计课程上的学生人数
|
|
|
+ * @return java.util.List<java.util.Map < java.lang.Integer, java.lang.Integer>>
|
|
|
* @describe
|
|
|
* @author Joburgess
|
|
|
* @date 2020/1/8
|
|
|
- * @param courseIds: 统计课程上的学生人数
|
|
|
- * @return java.util.List<java.util.Map<java.lang.Integer,java.lang.Integer>>
|
|
|
*/
|
|
|
List<Map<Integer, Integer>> countCourseStudentNum(@Param("courseIds") List<Long> courseIds);
|
|
|
|
|
|
/**
|
|
|
- * @describe 检测学生是否存在指定课程的缴费记录
|
|
|
- * @author Joburgess
|
|
|
- * @date 2020/1/10
|
|
|
* @param courseScheduleId:
|
|
|
* @param userId:
|
|
|
* @return int
|
|
|
+ * @describe 检测学生是否存在指定课程的缴费记录
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2020/1/10
|
|
|
*/
|
|
|
int checkStudentHaveCourse(@Param("courseScheduleId") Long courseScheduleId,
|
|
|
@Param("userId") Integer userId);
|
|
|
|
|
|
/**
|
|
|
+ * @param courseScheduleId: 课程编号
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.entity.CourseScheduleStudentPayment>
|
|
|
* @describe 查询指定课程的学生缴费记录
|
|
|
* @author Joburgess
|
|
|
* @date 2020/1/10
|
|
|
- * @param courseScheduleId: 课程编号
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.entity.CourseScheduleStudentPayment>
|
|
|
*/
|
|
|
List<CourseScheduleStudentPayment> findByCourseSchedule(@Param("courseScheduleId") Long courseScheduleId);
|
|
|
|
|
|
/**
|
|
|
+ * @param groupId:
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.dto.VipGroupGiveCourseSortDto>
|
|
|
* @describe 获取小课需要调整的缴费记录
|
|
|
* @author Joburgess
|
|
|
* @date 2020/1/10
|
|
|
- * @param groupId:
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.dto.VipGroupGiveCourseSortDto>
|
|
|
*/
|
|
|
List<VipGroupGiveCourseSortDto> findVipGroupSortCourseByGroup(@Param("groupId") String groupId);
|
|
|
|
|
|
/**
|
|
|
* 获取课程学员数量
|
|
|
+ *
|
|
|
* @param courseScheduleId
|
|
|
* @return
|
|
|
*/
|
|
|
Integer countStudentNum(Integer courseScheduleId);
|
|
|
|
|
|
/**
|
|
|
- * @describe 根据团体删除班级
|
|
|
- * @author Joburgess
|
|
|
- * @date 2020/2/17
|
|
|
* @param groupId:
|
|
|
* @param groupType:
|
|
|
* @return int
|
|
|
+ * @describe 根据团体删除班级
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2020/2/17
|
|
|
*/
|
|
|
int deleteByGroup(@Param("groupId") String groupId,
|
|
|
- @Param("groupType")GroupType groupType);
|
|
|
+ @Param("groupType") GroupType groupType);
|
|
|
|
|
|
/**
|
|
|
* 获取当前课程的学员列表
|
|
|
+ *
|
|
|
* @param courseScheduleId
|
|
|
* @return
|
|
|
*/
|
|
@@ -241,25 +248,27 @@ public interface CourseScheduleStudentPaymentDao extends BaseDAO<Long, CourseSch
|
|
|
|
|
|
/**
|
|
|
* 获取课程的学员编号列表
|
|
|
+ *
|
|
|
* @param courseScheduleIds
|
|
|
* @return
|
|
|
*/
|
|
|
- List<Map<Integer,String>> getStudentIdMap(@Param("courseScheduleIds") List<Long> courseScheduleIds);
|
|
|
+ List<Map<Integer, String>> getStudentIdMap(@Param("courseScheduleIds") List<Long> courseScheduleIds);
|
|
|
|
|
|
/**
|
|
|
+ * @param monday:
|
|
|
+ * @return java.util.List<java.lang.Integer>
|
|
|
* @describe 获取在指定时间之后不存在网管课的学员编号列表
|
|
|
* @author Joburgess
|
|
|
* @date 2020/4/10
|
|
|
- * @param monday:
|
|
|
- * @return java.util.List<java.lang.Integer>
|
|
|
*/
|
|
|
- List<Practice4ExercisesSituationDto> findNoPracticeStudentIdsOnWeek(@Param("monday")String monday,
|
|
|
- @Param("sunday")String sunday);
|
|
|
+ List<Practice4ExercisesSituationDto> findNoPracticeStudentIdsOnWeek(@Param("monday") String monday,
|
|
|
+ @Param("sunday") String sunday);
|
|
|
|
|
|
Integer findNoPracticeStudentTeacherId(@Param("studentId") Integer studentId);
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 从指定时间开始查询学的线上可数
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
List<StudentCourseTimesDto> queryStudentNotStartCourseTimesOfOnline();
|
|
@@ -267,25 +276,27 @@ public interface CourseScheduleStudentPaymentDao extends BaseDAO<Long, CourseSch
|
|
|
List<StudentTeacherCourseDto> findAllStudentCourseInfo();
|
|
|
|
|
|
/**
|
|
|
+ * @param courseScheduleIds:
|
|
|
+ * @return java.util.List<java.util.Map < java.lang.Long, java.math.BigDecimal>>
|
|
|
* @describe 统计每节课的收款
|
|
|
* @author Joburgess
|
|
|
* @date 2020.05.09
|
|
|
- * @param courseScheduleIds:
|
|
|
- * @return java.util.List<java.util.Map<java.lang.Long,java.math.BigDecimal>>
|
|
|
*/
|
|
|
List<Map<Long, BigDecimal>> findCoursePayment(@Param("courseScheduleIds") List<Long> courseScheduleIds);
|
|
|
|
|
|
/**
|
|
|
* 获取学员指定课程类型的剩余课时数
|
|
|
+ *
|
|
|
* @param studentId
|
|
|
* @param courseScheduleType
|
|
|
* @return
|
|
|
*/
|
|
|
int countStudentNotStartCourseNumWithCourseType(@Param("studentId") Integer studentId,
|
|
|
- @Param("courseScheduleType")CourseSchedule.CourseScheduleType courseScheduleType);
|
|
|
+ @Param("courseScheduleType") CourseSchedule.CourseScheduleType courseScheduleType);
|
|
|
|
|
|
/**
|
|
|
* 批量操作节拍器状态
|
|
|
+ *
|
|
|
* @param courseScheduleId
|
|
|
* @param userId
|
|
|
*/
|
|
@@ -293,6 +304,7 @@ public interface CourseScheduleStudentPaymentDao extends BaseDAO<Long, CourseSch
|
|
|
|
|
|
/**
|
|
|
* 获取用户的节拍器信息
|
|
|
+ *
|
|
|
* @param userIds
|
|
|
* @param courseScheduleId
|
|
|
* @return
|
|
@@ -301,6 +313,7 @@ public interface CourseScheduleStudentPaymentDao extends BaseDAO<Long, CourseSch
|
|
|
|
|
|
/**
|
|
|
* 获取单个用户的midi
|
|
|
+ *
|
|
|
* @param courseScheduleId
|
|
|
* @param userId
|
|
|
* @return
|
|
@@ -308,18 +321,19 @@ public interface CourseScheduleStudentPaymentDao extends BaseDAO<Long, CourseSch
|
|
|
String getMidiByCourseIdAndUserId(@Param("courseScheduleId") String courseScheduleId, @Param("userId") String userId);
|
|
|
|
|
|
/**
|
|
|
+ * @param groupType:
|
|
|
+ * @param groupIds:
|
|
|
+ * @return java.util.List<java.util.Map < java.lang.String, java.math.BigDecimal>>
|
|
|
* @describe 统计课程组下的课程单价
|
|
|
* @author Joburgess
|
|
|
* @date 2020.06.11
|
|
|
- * @param groupType:
|
|
|
- * @param groupIds:
|
|
|
- * @return java.util.List<java.util.Map<java.lang.String,java.math.BigDecimal>>
|
|
|
*/
|
|
|
List<Map<String, BigDecimal>> findGroupCoursesUnitPrice(@Param("groupType") GroupType groupType,
|
|
|
@Param("groupIds") List<String> groupIds);
|
|
|
|
|
|
/**
|
|
|
* 获取未进入教室的学员列表
|
|
|
+ *
|
|
|
* @param roomId
|
|
|
* @param courseScheduleId
|
|
|
* @return
|
|
@@ -327,11 +341,17 @@ public interface CourseScheduleStudentPaymentDao extends BaseDAO<Long, CourseSch
|
|
|
List<RongyunBasicUserDto> queryNoJoinStu(@Param("roomId") String roomId, @Param("courseScheduleId") String courseScheduleId);
|
|
|
|
|
|
/**
|
|
|
+ * @param batchNo:
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.entity.CourseScheduleStudentPayment>
|
|
|
* @describe 根据批次号获取学员课程缴费记录
|
|
|
* @author Joburgess
|
|
|
* @date 2020.10.30
|
|
|
- * @param batchNo:
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.entity.CourseScheduleStudentPayment>
|
|
|
*/
|
|
|
List<CourseScheduleStudentPayment> findByBatchNo(@Param("batchNo") String batchNo);
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取学生班级未开始的课程
|
|
|
+ */
|
|
|
+ List<CourseScheduleStudentPayment> getClassGroupNoStartCourse(@Param("classGroupIds") List<Integer> classGroupIds);
|
|
|
}
|