|
@@ -2,6 +2,7 @@ package com.ym.mec.biz.dal.dao;
|
|
|
|
|
|
import com.ym.mec.biz.dal.dto.*;
|
|
|
import com.ym.mec.biz.dal.entity.ClassGroup;
|
|
|
+import com.ym.mec.biz.dal.enums.ClassGroupTypeEnum;
|
|
|
import com.ym.mec.common.dal.BaseDAO;
|
|
|
import com.ym.mec.common.entity.ImGroupModel;
|
|
|
import com.ym.mec.common.entity.ImUserModel;
|
|
@@ -81,6 +82,7 @@ public interface ClassGroupDao extends BaseDAO<Integer, ClassGroup> {
|
|
|
|
|
|
/**
|
|
|
* COUNT教师所在乐团带了哪些班级
|
|
|
+ *
|
|
|
* @param params
|
|
|
* @return
|
|
|
*/
|
|
@@ -118,7 +120,7 @@ public interface ClassGroupDao extends BaseDAO<Integer, ClassGroup> {
|
|
|
* @param vipIds
|
|
|
* @return
|
|
|
*/
|
|
|
- List<Map<String,String>> findVipStuNames(String vipIds);
|
|
|
+ List<Map<String, String>> findVipStuNames(String vipIds);
|
|
|
|
|
|
/**
|
|
|
* 获取课程下的学员列表
|
|
@@ -203,72 +205,77 @@ public interface ClassGroupDao extends BaseDAO<Integer, ClassGroup> {
|
|
|
List<ClassGroup> findNoClassSubjects(String musicGroupId);
|
|
|
|
|
|
/**
|
|
|
+ * @return com.ym.mec.biz.dal.entity.ClassGroup
|
|
|
* @Author: Joburgess
|
|
|
* @Date: 2019/10/16
|
|
|
* @params [vipGroupId]
|
|
|
- * @return com.ym.mec.biz.dal.entity.ClassGroup
|
|
|
* @describe 根据小课获取关联的班级信息
|
|
|
*/
|
|
|
ClassGroup findByVipGroup(Long vipGroupId);
|
|
|
|
|
|
/**
|
|
|
+ * @return com.ym.mec.biz.dal.entity.ClassGroup
|
|
|
* @Author: Joburgess
|
|
|
* @Date: 2019/10/16
|
|
|
* @params [classGroupId]
|
|
|
- * @return com.ym.mec.biz.dal.entity.ClassGroup
|
|
|
* @describe 锁定班级信息
|
|
|
*/
|
|
|
ClassGroup lockClassGroup(Long classGroupId);
|
|
|
|
|
|
/**
|
|
|
* 获取当前班级列表老师数量
|
|
|
+ *
|
|
|
* @param classGroupIds
|
|
|
* @return
|
|
|
*/
|
|
|
List<Map<Integer, Integer>> countTeacherNums(@Param("classGroupIds") String classGroupIds);
|
|
|
|
|
|
/**
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.dto.TeacherClassGroupDto>
|
|
|
* @Author: Joburgess
|
|
|
* @Date: 2019/10/17
|
|
|
* @params [teacherId]
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.dto.TeacherClassGroupDto>
|
|
|
* @describe 获取老师乐团班级
|
|
|
*/
|
|
|
List<TeacherClassGroupDto> findTeacherMusicClassGroup(@Param("teacherId") Long teacherId);
|
|
|
|
|
|
/**
|
|
|
* 根据老师编号列表获取小课数量
|
|
|
+ *
|
|
|
* @param teacherIds
|
|
|
* @return
|
|
|
*/
|
|
|
List<Map<Integer, Long>> countTeacherVipNum(String teacherIds);
|
|
|
|
|
|
/**
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.dto.TeacherClassGroupDto>
|
|
|
* @Author: Joburgess
|
|
|
* @Date: 2019/10/17
|
|
|
* @params [teacherId]
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.dto.TeacherClassGroupDto>
|
|
|
* @describe 获取老师vip课班级
|
|
|
*/
|
|
|
List<TeacherClassGroupDto> findTeacherVipClassGroup(@Param("teacherId") Long teacherId);
|
|
|
|
|
|
/**
|
|
|
* 根据合奏班编号列表,获取单技班名称列表
|
|
|
+ *
|
|
|
* @param classGroupIds
|
|
|
* @return
|
|
|
*/
|
|
|
List<Map<Integer, String>> queryNamesByClassId(@Param("classGroupIds") String classGroupIds);
|
|
|
+
|
|
|
/**
|
|
|
+ * @param classGroupId: 班级编号
|
|
|
+ * @return java.util.List<java.lang.Integer>
|
|
|
* @describe 查询班级下所有学生的部门编号列表
|
|
|
* @author Joburgess
|
|
|
* @date 2019/10/21
|
|
|
- * @param classGroupId: 班级编号
|
|
|
- * @return java.util.List<java.lang.Integer>
|
|
|
*/
|
|
|
List<Integer> findStudentOrganIdsByClassGroup(Long classGroupId);
|
|
|
|
|
|
/**
|
|
|
* 乐团详情--班级详情列表
|
|
|
+ *
|
|
|
* @param params
|
|
|
* @return
|
|
|
*/
|
|
@@ -276,6 +283,7 @@ public interface ClassGroupDao extends BaseDAO<Integer, ClassGroup> {
|
|
|
|
|
|
/**
|
|
|
* COUNT乐团详情--班级详情列表
|
|
|
+ *
|
|
|
* @param params
|
|
|
* @return
|
|
|
*/
|
|
@@ -283,13 +291,15 @@ public interface ClassGroupDao extends BaseDAO<Integer, ClassGroup> {
|
|
|
|
|
|
/**
|
|
|
* 根据班级编号列表,获取老师名字
|
|
|
+ *
|
|
|
* @param classGroupIds
|
|
|
* @return
|
|
|
*/
|
|
|
- List<Map<Integer, String>> countStudentNum(@Param("classGroupIds") String classGroupIds,@Param("teacherRole") String teacherRole);
|
|
|
+ List<Map<Integer, String>> countStudentNum(@Param("classGroupIds") String classGroupIds, @Param("teacherRole") String teacherRole);
|
|
|
|
|
|
/**
|
|
|
* 根据班级编号列表,获取班级在读人数
|
|
|
+ *
|
|
|
* @param classGroupIds
|
|
|
* @return
|
|
|
*/
|
|
@@ -297,6 +307,7 @@ public interface ClassGroupDao extends BaseDAO<Integer, ClassGroup> {
|
|
|
|
|
|
/**
|
|
|
* 根据班级编号列表,获取班级退班人数
|
|
|
+ *
|
|
|
* @param classGroupIds
|
|
|
* @return
|
|
|
*/
|
|
@@ -304,6 +315,7 @@ public interface ClassGroupDao extends BaseDAO<Integer, ClassGroup> {
|
|
|
|
|
|
/**
|
|
|
* 获取乐团详情---课表详情列表
|
|
|
+ *
|
|
|
* @param params
|
|
|
* @return
|
|
|
*/
|
|
@@ -311,6 +323,7 @@ public interface ClassGroupDao extends BaseDAO<Integer, ClassGroup> {
|
|
|
|
|
|
/**
|
|
|
* COUNT乐团详情---课表详情列表
|
|
|
+ *
|
|
|
* @param params
|
|
|
* @return
|
|
|
*/
|
|
@@ -318,21 +331,24 @@ public interface ClassGroupDao extends BaseDAO<Integer, ClassGroup> {
|
|
|
|
|
|
/**
|
|
|
* 根据班级编号列表获取班级名称
|
|
|
+ *
|
|
|
* @param classGroupIds
|
|
|
* @return
|
|
|
*/
|
|
|
- List<Map<Integer,String>> findNameById(String classGroupIds);
|
|
|
+ List<Map<Integer, String>> findNameById(String classGroupIds);
|
|
|
|
|
|
/**
|
|
|
* 获取学员班级列表
|
|
|
+ *
|
|
|
* @param musicGroupId
|
|
|
* @param teacherId
|
|
|
* @return
|
|
|
*/
|
|
|
List<ConditionDto> queryStudentClassGroup(@Param("musicGroupId") String musicGroupId, @Param("teacherId") Integer teacherId);
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 批量新增班级上的课次数
|
|
|
+ *
|
|
|
* @param classGroupList
|
|
|
* @return
|
|
|
*/
|
|
@@ -347,6 +363,7 @@ public interface ClassGroupDao extends BaseDAO<Integer, ClassGroup> {
|
|
|
|
|
|
/**
|
|
|
* 获取学生端,vip课程列表
|
|
|
+ *
|
|
|
* @param userId
|
|
|
* @return
|
|
|
*/
|
|
@@ -361,8 +378,17 @@ public interface ClassGroupDao extends BaseDAO<Integer, ClassGroup> {
|
|
|
|
|
|
/**
|
|
|
* 获取学生端,学员乐团课列表详情
|
|
|
+ *
|
|
|
* @param userId
|
|
|
* @return
|
|
|
*/
|
|
|
Integer countStudentMusicGroupCourses(Integer userId);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询对应类型所有班级列表
|
|
|
+ * @param musicGroupId
|
|
|
+ * @param type
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ List<ClassGroup> findClassGroupByMusicGroupIdAndType(@Param("musicGroupId") String musicGroupId, @Param("type") ClassGroupTypeEnum type);
|
|
|
}
|