|
|
@ -14,7 +14,7 @@ public interface BanRepository extends PagingAndSortingRepository<Ban, Long> { |
|
|
|
|
|
|
|
@Query(value = "select b from Ban b where " + |
|
|
|
"(:ban_ids is null or b.id in :ban_ids) and " + |
|
|
|
"(:account_ids is null or b.account_id in :accounts_ids) and " + |
|
|
|
"(:account_ids is null or b.account_id in :account_ids) and " + |
|
|
|
"(:begin_date is null or b.timestamp >= :begin_date) and " + |
|
|
|
"(:end_date is null or :end_date <= b.timestamp) and " + |
|
|
|
"(:active is null or b.active = :active) and " + |
|
|
|