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