ClassGroupStudentMapperService.java 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. package com.ym.mec.biz.service;
  2. import com.ym.mec.biz.dal.entity.ClassGroupStudentMapper;
  3. import com.ym.mec.biz.dal.entity.StudentRegistration;
  4. import com.ym.mec.biz.dal.enums.ClassGroupStudentStatusEnum;
  5. import com.ym.mec.biz.dal.enums.ClassGroupTypeEnum;
  6. import com.ym.mec.biz.dal.enums.GroupType;
  7. import com.ym.mec.common.service.BaseService;
  8. import java.io.IOException;
  9. import java.util.List;
  10. public interface ClassGroupStudentMapperService extends BaseService<Long, ClassGroupStudentMapper> {
  11. /**
  12. * 查找班级学生对应关系
  13. * @param userId
  14. * @param classGroupId
  15. * @return
  16. */
  17. ClassGroupStudentMapper findClassStudentMapperByUserIdAndClassGroupId(Integer userId, Integer classGroupId);
  18. /**
  19. * 删除班级学生
  20. * @param userId
  21. * @param classGroupId
  22. * @return
  23. */
  24. boolean delClassGroupStudent(Integer userId, Integer classGroupId) throws Exception;
  25. /**
  26. * 查询班级某状态下所有的学生
  27. * @param classGroupId
  28. * @param status
  29. * @return
  30. */
  31. List<StudentRegistration> findClassStudentList(Integer classGroupId, ClassGroupStudentStatusEnum status);
  32. /**
  33. * 调整班级
  34. * @param userId
  35. * @param oldClassGroupId
  36. * @param classGroupId
  37. * @return
  38. */
  39. boolean adjustClassGroup(Integer userId,Integer oldClassGroupId,Integer classGroupId) throws Exception;
  40. /**
  41. * 添加学员
  42. * @param classGroupId
  43. * @param userIdsStr
  44. * @return
  45. * @throws Exception
  46. */
  47. boolean addStudents(Integer classGroupId, String userIdsStr, GroupType groupType) throws Exception;
  48. /**
  49. * 获取节假日
  50. * @param year
  51. * @return
  52. */
  53. Object queryHoliday(String year) throws IOException;
  54. List<ClassGroupStudentMapper> findMusicGroupClassGroupByType(String musicGroupId, ClassGroupTypeEnum type);
  55. void classGroupStudentsInsert(List<ClassGroupStudentMapper> classGroupStudentMappers);
  56. }