fix: 修复sql小bug

11111
winter 11 months ago
parent 0ac22b5353
commit 118fc413d3

@ -13,7 +13,7 @@ import java.util.List;
*/
@Repository
public interface ChatAppRepository extends CosmosRepository<ChatApp, String> {
@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<ChatApp> findAllByCodeAndSchoolId(String schoolId);
@Query("SELECT c.id, c.schoolId, c.prompt FROM c WHERE c.code = 'ChatApp' AND c.id = @id")

Loading…
Cancel
Save