BaseClassCourseMapper.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package com.xjrsoft.module.base.mapper;
  2. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  3. import com.github.yulichang.base.MPJBaseMapper;
  4. import com.xjrsoft.module.base.dto.BaseClassCoursePageDto;
  5. import com.xjrsoft.module.base.entity.BaseClassCourse;
  6. import com.xjrsoft.module.base.entity.CourseBookInfo;
  7. import com.xjrsoft.module.base.vo.BaseClassCoursePageVo;
  8. import org.apache.ibatis.annotations.Mapper;
  9. import org.apache.ibatis.annotations.Select;
  10. import java.util.List;
  11. import java.util.Map;
  12. /**
  13. * @title: 班级课程
  14. * @Author brealinxx
  15. * @Date: 2024-06-04
  16. * @Version 1.0
  17. */
  18. @Mapper
  19. public interface BaseClassCourseMapper extends MPJBaseMapper<BaseClassCourse> {
  20. Page<BaseClassCoursePageVo> getPage(Page<BaseClassCoursePageVo> page, BaseClassCoursePageDto dto);
  21. @Select("SELECT id, name FROM base_semester")
  22. List<Map<String, Object>> getAllSemesterNames();
  23. List<CourseBookInfo> getAllCourseBook(Long[] classIds, Long subjectGroupId, Long semester);
  24. List<CourseBookInfo> getSelectedCourseBook(Long[] classIds, Long semester);
  25. void updateAddClassCourseTextbooks(Long classId,Long courseId,Long textbookId);
  26. void updateRemoveClassCourseTextbooks(Long classId,Long courseId,Long textbookId);
  27. void markExistingRecordsAsDeleted(Long newClassId, Long sourceClassId);
  28. void insertClassCourseTextbookCombinations(Long newClassId, Long sourceClassId, Long semester);
  29. Long getClassIdByName(String name);
  30. Long getCourseIdByName(String name);
  31. Long getBookIdByName(String name);
  32. Long getBaseSemesterIdByName(String name);
  33. boolean checkExits(Long classId,Long courseId,Long textbookId);
  34. boolean checkExitsWithoutTextbook(Long classId, Long courseId);
  35. }