diff --git a/src/main/java/cn/teammodel/repository/ChatAppRepository.java b/src/main/java/cn/teammodel/repository/ChatAppRepository.java index 3f73df4..8c06ab8 100644 --- a/src/main/java/cn/teammodel/repository/ChatAppRepository.java +++ b/src/main/java/cn/teammodel/repository/ChatAppRepository.java @@ -13,7 +13,7 @@ import java.util.List; */ @Repository public interface ChatAppRepository extends CosmosRepository { - @Query("SELECT * FROM c WHERE c.code = 'ChatApp' AND (c.schoolId = @schoolId OR c.schoolId = 'public'))") + @Query("SELECT * FROM c WHERE c.code = 'ChatApp' AND (c.schoolId = @schoolId OR c.schoolId = 'public')") List findAllByCodeAndSchoolId(String schoolId); @Query("SELECT c.id, c.schoolId, c.prompt FROM c WHERE c.code = 'ChatApp' AND c.id = @id")