From 118fc413d30b1eea3bb6ccdefe3b40ac570c247d Mon Sep 17 00:00:00 2001 From: winter <2436197699@qq.com> Date: Mon, 29 Jan 2024 11:47:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dsql=E5=B0=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/teammodel/repository/ChatAppRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")