ClassGroupStudentMapperService.java 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. package com.ym.mec.biz.service;
  2. import com.ym.mec.biz.dal.dto.ClassGroupStudentInfoDto;
  3. import com.ym.mec.biz.dal.entity.ClassGroupStudentMapper;
  4. import com.ym.mec.biz.dal.entity.StudentRegistration;
  5. import com.ym.mec.biz.dal.enums.ClassGroupStudentStatusEnum;
  6. import com.ym.mec.biz.dal.enums.ClassGroupTypeEnum;
  7. import com.ym.mec.biz.dal.enums.GroupType;
  8. import com.ym.mec.common.service.BaseService;
  9. import java.io.IOException;
  10. import java.util.List;
  11. import java.util.Set;
  12. public interface ClassGroupStudentMapperService extends BaseService<Long, ClassGroupStudentMapper> {
  13. /**
  14. * 查找班级学生对应关系
  15. * @param userId
  16. * @param classGroupId
  17. * @return
  18. */
  19. ClassGroupStudentMapper findClassStudentMapperByUserIdAndClassGroupId(Integer userId, Integer classGroupId,String status);
  20. /**
  21. * 删除班级学生
  22. * @param userId
  23. * @param classGroupId
  24. * @return
  25. */
  26. boolean delClassGroupStudent(Integer userId, Integer classGroupId,Boolean quitMusicGroup);
  27. /**
  28. * 查询班级某状态下所有的学生
  29. * @param classGroupId
  30. * @param status
  31. * @return
  32. */
  33. List<StudentRegistration> findClassStudentList(Integer classGroupId, ClassGroupStudentStatusEnum status);
  34. /**
  35. * 调整班级
  36. * @param userId
  37. * @param oldClassGroupId
  38. * @param classGroupId
  39. * @return
  40. */
  41. boolean adjustClassGroup(Integer userId,Integer oldClassGroupId,Integer classGroupId) throws Exception;
  42. /**
  43. * 添加学员
  44. * @param classGroupId
  45. * @param userIdsStr
  46. * @return
  47. * @throws Exception
  48. */
  49. boolean addStudents(Integer classGroupId, String userIdsStr, GroupType groupType) throws Exception;
  50. /**
  51. * 获取节假日
  52. * @param year
  53. * @return
  54. */
  55. Object queryHoliday(String year) throws IOException;
  56. List<ClassGroupStudentMapper> findMusicGroupClassGroupByType(String musicGroupId, ClassGroupTypeEnum type);
  57. void classGroupStudentsInsert(List<ClassGroupStudentMapper> classGroupStudentMappers);
  58. /**
  59. * @describe 获取团体或者班级下的学员
  60. * @author Joburgess
  61. * @date 2020/3/10
  62. * @param groupId:
  63. * @param classGroupId:
  64. * @param groupType:
  65. * @return java.util.List<com.ym.mec.biz.dal.dto.ClassGroupStudentInfoDto>
  66. */
  67. List<ClassGroupStudentInfoDto> findStudentByGroupOrClassGroup(String groupId, Integer classGroupId, GroupType groupType);
  68. /**
  69. * @describe 更新班级学员
  70. * @author Joburgess
  71. * @date 2020.11.04
  72. * @param classGroupId:
  73. * @param studentIds:
  74. * @return void
  75. */
  76. void updateClassGroupStudents(Long classGroupId, Set<Integer> studentIds);
  77. /**
  78. * @describe 更新班级学员
  79. * @author Joburgess
  80. * @date 2020.11.04
  81. * @param classGroupId:
  82. * @param studentIds:
  83. * @return void
  84. */
  85. void updateClassGroupStudents1(Long classGroupId, List<Integer> studentIds,List<Long> allLockCourseIds,String batchNo);
  86. }