update 数据同步

develop
hhb@hotmail.com 3 weeks ago
parent 5e3b16e9ed
commit 81784e38e0

@ -25,7 +25,7 @@ public interface SchoolRepository extends CosmosRepository<School, String> {
List<School.Subject> findSubjectById(@Param("schoolId") String schoolId, @Param("periodId") String periodId); List<School.Subject> findSubjectById(@Param("schoolId") String schoolId, @Param("periodId") String periodId);
@Query("select s.period,s.subjects from School as s where s.id = @schoolId and s.code = 'Base' ") @Query("select s.period,s.subjects from School as s where s.id = @schoolId and s.code = 'Base' ")
List<School> findBaseById(@Param("schoolId") String schoolId); List<School> findBaseById(@Param("schoolId") String schoolId);
@Query("select c.id,c.name,s.picture,s.areaId from School as s where s.id = @schoolId and s.code = 'Base' ") @Query("select s.id,s.name,s.picture,s.areaId from School as s where s.id = @schoolId and s.code = 'Base' ")
List<School> findBasePictureById(@Param("schoolId") String schoolId); List<School> findBasePictureById(@Param("schoolId") String schoolId);
School findSchoolByIdAndCode(String schoolId, String code); School findSchoolByIdAndCode(String schoolId, String code);
} }

Loading…
Cancel
Save