|
|
|
@ -19,11 +19,14 @@ public interface LessonRecordRepository extends CosmosRepository<LessonRecord, S
|
|
|
|
|
" c.tmdid = @tmdId")
|
|
|
|
|
List<LessonRecord> getLessonsByConditions(String code, Long startTime, Long endTime,String tmdId);
|
|
|
|
|
|
|
|
|
|
@Query("select * from LessonRecord as c where c.code = @code and c.expire<=0 and c.status<>404 and c.tmdid = @tmdId ")
|
|
|
|
|
Slice<LessonRecord> findAllByAcademicYearId(String code, String tmdId,Pageable pageable);
|
|
|
|
|
@Query("select * from LessonRecord as c where c.code = @code and c.expire<=0 and c.status<>404 and array_contains(c.grade,@grade) ")
|
|
|
|
|
Slice<LessonRecord> findAllByGrade(String code, String grade,Pageable pageable);
|
|
|
|
|
@Query("select * from LessonRecord as c where c.code = @code and c.expire<=0 and c.status<>404 ")
|
|
|
|
|
Slice<LessonRecord> findAll(String code,Pageable pageable);
|
|
|
|
|
@Query("select * from LessonRecord as c where c.code = @code and c.expire<=0 and c.status<>404 and c.tmdid = @tmdId and " +
|
|
|
|
|
"(IS_NULL(@subjectId) or c.subjectId = @subjectId) ")
|
|
|
|
|
Slice<LessonRecord> findAllByAcademicYearId(String code, String tmdId,String subjectId,Pageable pageable);
|
|
|
|
|
@Query("select * from LessonRecord as c where c.code = @code and c.expire<=0 and c.status<>404 and array_contains(c.grade,@grade) and" +
|
|
|
|
|
"(IS_NULL(@subjectId) or c.subjectId = @subjectId) ")
|
|
|
|
|
Slice<LessonRecord> findAllByGrade(String code, String grade,String subjectId,Pageable pageable);
|
|
|
|
|
@Query("select * from LessonRecord as c where c.code = @code and c.expire<=0 and c.status<>404 and " +
|
|
|
|
|
"(IS_NULL(@subjectId) or c.subjectId = @subjectId) ")
|
|
|
|
|
Slice<LessonRecord> findAll(String code,String subjectId,Pageable pageable);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|