クエリ修正

This commit is contained in:
r-ca 2024-01-24 15:39:51 +09:00
parent 904ae8d39f
commit dafb49cca0
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -21,7 +21,7 @@ public interface VcsRevDao {
@Query("SELECT * FROM vcs_rev WHERE id IN (:ids)")
List<VcsRevEntity> findByIds(List<String> ids);
@Query("SELECT * FROM vcs_rev WHERE document_id = :documentId")
@Query("SELECT * FROM vcs_rev WHERE document_id = :documentId ORDER BY created_at ASC")
List<VcsRevEntity> findByDocumentId(String documentId);
@Query("SELECT * FROM vcs_rev WHERE document_id = :documentId ORDER BY created_at DESC LIMIT 1")