|
|
@ -18,6 +18,6 @@ public interface ClassRepository extends CosmosRepository<ClassInfo, String> {
|
|
|
|
|
|
|
|
|
|
|
|
@Query("select c.id, c.name from School as c where c.code = @code and c.id in (@ids)")
|
|
|
|
@Query("select c.id, c.name from School as c where c.code = @code and c.id in (@ids)")
|
|
|
|
List<ClassInfo> findAllByCodeAndIdIn(String code, Collection<String> ids);
|
|
|
|
List<ClassInfo> findAllByCodeAndIdIn(String code, Collection<String> ids);
|
|
|
|
@Query("select c.id, c.name,c.year,c.periodId from School as c where c.school = @school and c.periodId = @periodId and c.pk = 'Class'")
|
|
|
|
@Query("select c.id, c.name,c.year,c.periodId from School as c where c.periodId = @periodId and c.pk = 'Class'")
|
|
|
|
List<ClassInfo> findClassBySchoolIdAndPeriodId(String school, String periodId);
|
|
|
|
List<ClassInfo> findClassBySchoolIdAndPeriodId(String periodId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|