|
@@ -17,6 +17,7 @@ import java.util.Map;
|
|
|
public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStudentMapper> {
|
|
|
|
|
|
int batchUpdate(@Param("classGroupStudentMappers") List<ClassGroupStudentMapper> classGroupStudentMappers);
|
|
|
+
|
|
|
/**
|
|
|
* 批量插入学生
|
|
|
*
|
|
@@ -35,12 +36,12 @@ public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStud
|
|
|
ClassGroupStudentMapper query(@Param("classGroupId") int classGroupId, @Param("userId") Integer userId);
|
|
|
|
|
|
/**
|
|
|
+ * @param classGroupId: 班级编号
|
|
|
+ * @param userId: 学员编号
|
|
|
+ * @return com.ym.mec.biz.dal.entity.ClassGroupStudentMapper
|
|
|
* @describe 获取班级上的学员
|
|
|
* @author Joburgess
|
|
|
* @date 2019/12/18
|
|
|
- * @param classGroupId: 班级编号
|
|
|
- * @param userId: 学员编号
|
|
|
- * @return com.ym.mec.biz.dal.entity.ClassGroupStudentMapper
|
|
|
*/
|
|
|
ClassGroupStudentMapper findClassGroupStudent(@Param("classGroupId") int classGroupId, @Param("userId") Integer userId);
|
|
|
|
|
@@ -61,26 +62,26 @@ public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStud
|
|
|
void deleteByClassId(Integer classGroupId);
|
|
|
|
|
|
/**
|
|
|
- * @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);
|
|
|
|
|
|
/**
|
|
|
- * @describe 根据团体删除班上的学生-退学
|
|
|
- * @author Joburgess
|
|
|
- * @date 2020/2/17
|
|
|
* @param groupId:
|
|
|
* @param groupType:
|
|
|
* @return int
|
|
|
+ * @describe 根据团体删除班上的学生-退学
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2020/2/17
|
|
|
*/
|
|
|
int deleteByGroupWithLogic(@Param("groupId") String groupId,
|
|
|
- @Param("groupType") GroupType groupType);
|
|
|
+ @Param("groupType") GroupType groupType);
|
|
|
|
|
|
/**
|
|
|
* @return int
|
|
@@ -102,7 +103,7 @@ public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStud
|
|
|
|
|
|
int deleteClassGroupStudent(@Param("classGroupId") Long classGroupId, @Param("userId") Integer userId);
|
|
|
|
|
|
- /**
|
|
|
+ /**
|
|
|
* @param classGroupId: 班级编号
|
|
|
* @return java.lang.String[]
|
|
|
* @describe 根据班级编号获取班级学生名称列表
|
|
@@ -112,20 +113,20 @@ public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStud
|
|
|
String[] findStudentNumByClassGroupId(@Param("classGroupId") Integer classGroupId);
|
|
|
|
|
|
/**
|
|
|
+ * @param courseScheduleId:
|
|
|
+ * @return java.lang.String[]
|
|
|
* @describe 获取课程上的学员名称集合
|
|
|
* @author Joburgess
|
|
|
* @date 2019/12/4
|
|
|
- * @param courseScheduleId:
|
|
|
- * @return java.lang.String[]
|
|
|
*/
|
|
|
String[] findCourseStudentName(@Param("courseScheduleId") Integer courseScheduleId);
|
|
|
|
|
|
/**
|
|
|
+ * @param courseScheduleId:
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.dto.StudentNameAndPhoneDto>
|
|
|
* @describe 获取课程上的学员名称和电话
|
|
|
* @author Joburgess
|
|
|
* @date 2020/2/16
|
|
|
- * @param courseScheduleId:
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.dto.StudentNameAndPhoneDto>
|
|
|
*/
|
|
|
List<StudentNameAndPhoneDto> findCourseStudentNameAndPhone(@Param("courseScheduleId") Integer courseScheduleId);
|
|
|
|
|
@@ -185,22 +186,22 @@ public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStud
|
|
|
List<ClassGroupStudentMapper> findByClassGroups(@Param("classGroupIds") List<Integer> classGroupIds);
|
|
|
|
|
|
/**
|
|
|
- * @describe 获取团体学员
|
|
|
- * @author Joburgess
|
|
|
- * @date 2020/3/8
|
|
|
* @param groupIds:
|
|
|
* @param groupType:
|
|
|
* @return java.util.List<com.ym.mec.biz.dal.entity.ClassGroupStudentMapper>
|
|
|
+ * @describe 获取团体学员
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2020/3/8
|
|
|
*/
|
|
|
List<ClassGroupStudentMapper> findByGroups(@Param("groupIds") List<String> groupIds,
|
|
|
@Param("groupType") GroupType groupType);
|
|
|
|
|
|
/**
|
|
|
+ * @param classGroupId:
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.entity.ClassGroupStudentMapper>
|
|
|
* @describe 获取指定班级的所有学员
|
|
|
* @author Joburgess
|
|
|
* @date 2020.11.04
|
|
|
- * @param classGroupId:
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.entity.ClassGroupStudentMapper>
|
|
|
*/
|
|
|
List<ClassGroupStudentMapper> findAllByClassGroup(@Param("classGroupId") Long classGroupId);
|
|
|
|
|
@@ -214,17 +215,17 @@ public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStud
|
|
|
List<ClassGroupStudentMapper> findByClassGroup(@Param("classGroupId") Integer classGroupId);
|
|
|
|
|
|
/**
|
|
|
- * @describe 获取团体或者班级上的学员
|
|
|
- * @author Joburgess
|
|
|
- * @date 2020/3/10
|
|
|
* @param groupId:
|
|
|
* @param groupType:
|
|
|
* @param classGroupId:
|
|
|
* @return java.util.List<com.ym.mec.biz.dal.dto.SimpleUserDto>
|
|
|
+ * @describe 获取团体或者班级上的学员
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2020/3/10
|
|
|
*/
|
|
|
List<ClassGroupStudentInfoDto> findByGroupOrClassGroup(@Param("groupId") String groupId,
|
|
|
- @Param("groupType") GroupType groupType,
|
|
|
- @Param("classGroupId") Integer classGroupId);
|
|
|
+ @Param("groupType") GroupType groupType,
|
|
|
+ @Param("classGroupId") Integer classGroupId);
|
|
|
|
|
|
/**
|
|
|
* 查询班级某状态下所有的学生
|
|
@@ -266,10 +267,10 @@ public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStud
|
|
|
* @date 2019/11/21
|
|
|
*/
|
|
|
List<Map<Integer, Integer>> countClassGroupsStudentNum(@Param("classGroupIds") List<Integer> classGroupIds,
|
|
|
- @Param("status")ClassGroupStudentStatusEnum status);
|
|
|
+ @Param("status") ClassGroupStudentStatusEnum status);
|
|
|
|
|
|
List<Map<String, Integer>> countGroupAllStudentNum(@Param("groupIds") List<String> groupIds,
|
|
|
- @Param("groupType") GroupType groupType);
|
|
|
+ @Param("groupType") GroupType groupType);
|
|
|
|
|
|
/**
|
|
|
* @param classGroupId: 班级编号
|
|
@@ -281,32 +282,32 @@ public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStud
|
|
|
Integer countClassGroupStudentNum(@Param("classGroupId") Integer classGroupId);
|
|
|
|
|
|
/**
|
|
|
+ * @param classGroupId:
|
|
|
+ * @return java.lang.Integer
|
|
|
* @describe 统计班级上学生人数,
|
|
|
* @author Joburgess
|
|
|
* @date 2019/12/26
|
|
|
- * @param classGroupId:
|
|
|
- * @return java.lang.Integer
|
|
|
*/
|
|
|
Integer countClassGroupNormalStudentNum(@Param("classGroupId") Integer classGroupId);
|
|
|
|
|
|
/**
|
|
|
- * @describe 统计课程组上状态正常的学员数量
|
|
|
- * @author Joburgess
|
|
|
- * @date 2020.08.05
|
|
|
* @param groupType:
|
|
|
* @param groupId:
|
|
|
* @return int
|
|
|
+ * @describe 统计课程组上状态正常的学员数量
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2020.08.05
|
|
|
*/
|
|
|
int countGroupNormalStudentNum(@Param("groupType") GroupType groupType,
|
|
|
@Param("groupId") String groupId);
|
|
|
|
|
|
/**
|
|
|
- * @describe 统计vip课或乐团下的学生人数
|
|
|
- * @author Joburgess
|
|
|
- * @date 2019/12/14
|
|
|
* @param groupId:
|
|
|
* @param groupType:
|
|
|
* @return java.lang.Integer
|
|
|
+ * @describe 统计vip课或乐团下的学生人数
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2019/12/14
|
|
|
*/
|
|
|
Integer countGroupStudentNum(@Param("groupId") String groupId,
|
|
|
@Param("groupType") String groupType);
|
|
@@ -345,6 +346,7 @@ public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStud
|
|
|
|
|
|
/**
|
|
|
* 查询乐团某种类型班级的学生
|
|
|
+ *
|
|
|
* @param musicGroupId
|
|
|
* @param classGroupType
|
|
|
* @return
|
|
@@ -353,6 +355,7 @@ public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStud
|
|
|
|
|
|
/**
|
|
|
* 获取vip课所有学员列表
|
|
|
+ *
|
|
|
* @param vipGroupId
|
|
|
* @return
|
|
|
*/
|
|
@@ -360,50 +363,52 @@ public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStud
|
|
|
|
|
|
/**
|
|
|
* 获取vip课所有教师列表
|
|
|
+ *
|
|
|
* @param vipGroupId
|
|
|
* @return
|
|
|
*/
|
|
|
List<Map<Integer, String>> queryTeacherIdMap(Long vipGroupId);
|
|
|
|
|
|
/**
|
|
|
+ * @param classGroupId: 班级编号
|
|
|
+ * @param userIds: 学生编号列表
|
|
|
+ * @return java.util.List<com.ym.mec.biz.dal.entity.ClassGroupStudentMapper>
|
|
|
* @describe 根据班级和学生编号获取关联记录
|
|
|
* @author Joburgess
|
|
|
* @date 2019/12/8
|
|
|
- * @param classGroupId: 班级编号
|
|
|
- * @param userIds: 学生编号列表
|
|
|
- * @return java.util.List<com.ym.mec.biz.dal.entity.ClassGroupStudentMapper>
|
|
|
*/
|
|
|
List<ClassGroupStudentMapper> findByClassGroupAndStudent(@Param("classGroupId") Integer classGroupId,
|
|
|
@Param("userIds") List<Integer> userIds);
|
|
|
|
|
|
/**
|
|
|
+ * @param groupId: 编号
|
|
|
+ * @param groupType: 类型
|
|
|
+ * @param status: 状态
|
|
|
+ * @return int
|
|
|
* @describe 批量更新指定乐团或小课下学员状态
|
|
|
* @author Joburgess
|
|
|
* @date 2019/12/10
|
|
|
- * @param groupId: 编号
|
|
|
- * @param groupType: 类型
|
|
|
- * @param status: 状态
|
|
|
- * @return int
|
|
|
*/
|
|
|
int updateVipGroupStudentStatus(@Param("groupId") String groupId,
|
|
|
@Param("groupType") String groupType,
|
|
|
@Param("status") String status);
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 查询这节课的新学生
|
|
|
+ *
|
|
|
* @param courseScheduleId
|
|
|
* @return
|
|
|
*/
|
|
|
List<ClassGroupStudentMapper> queryNewStudentListByCourseScheduleId(Long courseScheduleId);
|
|
|
|
|
|
/**
|
|
|
- * @describe 获取课程组上的学生
|
|
|
- * @author Joburgess
|
|
|
- * @date 2020/3/11
|
|
|
* @param groupId:
|
|
|
* @param groupType:
|
|
|
* @param userId:
|
|
|
* @return java.util.List<com.ym.mec.biz.dal.entity.ClassGroupStudentMapper>
|
|
|
+ * @describe 获取课程组上的学生
|
|
|
+ * @author Joburgess
|
|
|
+ * @date 2020/3/11
|
|
|
*/
|
|
|
List<ClassGroupStudentMapper> findGroupStudents(@Param("groupId") String groupId,
|
|
|
@Param("groupType") GroupType groupType,
|
|
@@ -412,6 +417,7 @@ public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStud
|
|
|
|
|
|
/**
|
|
|
* 获取学员教务老师
|
|
|
+ *
|
|
|
* @param studentIds
|
|
|
* @return
|
|
|
*/
|
|
@@ -419,6 +425,7 @@ public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStud
|
|
|
|
|
|
/**
|
|
|
* 是否在指定的班级
|
|
|
+ *
|
|
|
* @param classGroupIdListStr
|
|
|
* @return
|
|
|
*/
|
|
@@ -426,8 +433,18 @@ public interface ClassGroupStudentMapperDao extends BaseDAO<Long, ClassGroupStud
|
|
|
|
|
|
/**
|
|
|
* 获取班级里学员列表
|
|
|
- * @author zouxuan
|
|
|
+ *
|
|
|
* @param classGroupId
|
|
|
+ * @author zouxuan
|
|
|
*/
|
|
|
List<StudentNameAndPhoneDto> findCourseStudentNameAndPhoneByClassGroupId(Integer classGroupId);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * //主班是否包含所选学员学员
|
|
|
+ *
|
|
|
+ * @param masterClassGroupId
|
|
|
+ * @param studentIds
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ Boolean hasStudent(@Param("masterClassGroupId") Integer masterClassGroupId, @Param("studentIds") List<Integer> studentIds);
|
|
|
}
|