|
|
@ -16,7 +16,7 @@ public interface BanRepository extends PagingAndSortingRepository<Ban, Long> { |
|
|
|
"(:ban_ids_non_exists = true or b.id in :ban_ids) and " + |
|
|
|
"(:account_ids_non_exists = true or b.account_id in :account_ids) and " + |
|
|
|
"(:begin_date is null or DATE_PART('EPOCH', b.timestamp) >= :begin_date) and " + |
|
|
|
"(:end_date is null or :end_date <= DATE_PART('EPOCH', b.timestamp)) and " + |
|
|
|
"(:end_date is null or :end_date >= DATE_PART('EPOCH', b.timestamp)) and " + |
|
|
|
"(:active is null or b.active = :active) and " + |
|
|
|
"(:admin_ids_non_exists = true or b.unbanned_by_id in :admin_ids) order by b.id desc") |
|
|
|
Page<Ban> getBans(Pageable pageable, |
|
|
|