feat(transaction-history): add transaction history feature with modal
This commit is contained in:
parent
d6077645d9
commit
9817fb95db
6 changed files with 57 additions and 12 deletions
|
@ -16,6 +16,6 @@ public interface TransactionRepository extends JpaRepository<TransactionEntity,
|
|||
@Query("SELECT t FROM TransactionEntity t WHERE t.user = ?1")
|
||||
List<TransactionEntity> findAllByUserId(UserEntity id);
|
||||
|
||||
@Query("SELECT t FROM TransactionEntity t WHERE t.user = ?1 ORDER BY t.id DESC LIMIT ?2")
|
||||
@Query("SELECT t FROM TransactionEntity t WHERE t.user = ?1 ORDER BY t.createdAt DESC LIMIT ?2")
|
||||
List<TransactionEntity> findByUserIdWithLimit(UserEntity userEntity, Integer limit);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue