ExamSubjectSongDao.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package com.keao.edu.user.dao;
  2. import com.keao.edu.common.dal.BaseDAO;
  3. import com.keao.edu.user.dto.ExamSubjectSongDto;
  4. import com.keao.edu.user.entity.ExamSubjectSong;
  5. import org.apache.ibatis.annotations.Param;
  6. import java.util.List;
  7. import java.util.Map;
  8. public interface ExamSubjectSongDao extends BaseDAO<Long, ExamSubjectSong> {
  9. int batchInsert(@Param("examSubjectSongs") List<ExamSubjectSong> examSubjectSongs);
  10. /**
  11. * @param examId:
  12. * @return java.util.List<com.keao.edu.user.entity.ExamSubjectSong>
  13. * @describe 获取考级项目下的专业设置
  14. * @author Joburgess
  15. * @date 2020.06.22
  16. */
  17. List<ExamSubjectSong> findByExam(@Param("examId") Integer examId);
  18. /**
  19. * 获取考试对应科目对应级别的曲目
  20. *
  21. * @param examSubjectId
  22. * @param level
  23. * @return
  24. */
  25. ExamSubjectSong getExamSubjectSong(@Param("examinationBasicId") Integer examinationBasicId, @Param("examSubjectId") Long examSubjectId, @Param("level") Integer level);
  26. /**
  27. * 获取项目对应专业的级别
  28. * @param examinationBasicId
  29. * @param examSubjectId
  30. * @return
  31. */
  32. List<ExamSubjectSong> getExamSubjectLevels(@Param("examinationBasicId") Integer examinationBasicId, @Param("examSubjectId") Long examSubjectId);
  33. List<ExamSubjectSongDto> queryExamSubjectSongs(Map<String, Object> params);
  34. int countExamSubjectSongs(Map<String, Object> params);
  35. int countExamSongsWithSubject(@Param("examId") Long examId,@Param("subjectId") Integer subjectId);
  36. }