ClassGroupService.java 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. package com.ym.mec.web.service;
  2. import com.ym.mec.common.service.BaseService;
  3. import com.ym.mec.web.dal.dto.HighClassGroup;
  4. import com.ym.mec.web.dal.entity.ClassGroup;
  5. import com.ym.mec.web.dal.entity.ClassGroupRelation;
  6. import org.apache.ibatis.annotations.Param;
  7. import java.util.List;
  8. public interface ClassGroupService extends BaseService<Integer, ClassGroup> {
  9. /**
  10. * 查询老师乐团课课程
  11. *
  12. * @param teacherId
  13. * @return
  14. */
  15. List<ClassGroup> findClassGroup4Teacher(Integer teacherId);
  16. /**
  17. * 合奏班相关班级获取
  18. *
  19. * @param mixClassGroupId
  20. * @return
  21. */
  22. List<ClassGroup> findClassGroup(Integer musicGroupId, Integer mixClassGroupId);
  23. /**
  24. * 根据乐团编号查询单技班列表
  25. *
  26. * @param musicGroupId
  27. * @return
  28. */
  29. List<ClassGroup> findAllNormalClassGroupByMusicGroupId(int musicGroupId);
  30. /**
  31. * 根据乐团编号查询合奏班列表
  32. *
  33. * @param musicGroupId
  34. * @return
  35. */
  36. List<ClassGroup> findAllMixClassGroupByMusicGroupId(int musicGroupId);
  37. /**
  38. * 添加单技班
  39. *
  40. * @param classGroup
  41. * @return
  42. */
  43. ClassGroup addClassGroup(ClassGroup classGroup) throws Exception;
  44. /**
  45. * 添加合奏班
  46. *
  47. * @param classGroupIds
  48. * @return
  49. * @throws Exception
  50. */
  51. ClassGroup addMixClassGroup(int musicGroupId, String name, String classGroupIds) throws Exception;
  52. /**
  53. * 跟班级ids查询班级信息
  54. *
  55. * @param ids
  56. * @return
  57. */
  58. List<ClassGroup> findClassGroupByIds(String ids);
  59. /**
  60. * 提高班批量添加
  61. * @param highClassGroupList
  62. * @return
  63. * @throws Exception
  64. */
  65. List<HighClassGroup> addHighClassGroup(List<HighClassGroup> highClassGroupList) throws Exception;
  66. }