|
|
@ -24,7 +24,7 @@ public interface KillfeedRepository extends PagingAndSortingRepository<KillsInFe |
|
|
|
@Query(value = "select k from KillsInFeed k where " + |
|
|
|
"(:utime is null or k.utime >= :utime) and " + |
|
|
|
"(:server_id is null or k.server_id like :server_id) and" + |
|
|
|
"(:account_id is null or (k.attacker_id in :accounts_id and k.attacker_id != k.victim_id))") |
|
|
|
"(:account_id is null or (k.attacker_id in :accounts_id and k.attacker_id != k.victim_id)) order by k.id desc") |
|
|
|
Page<KillsInFeed> getKills(Pageable pageable, |
|
|
|
@Param("accounts_id") List<Long> accounts_id, |
|
|
|
@Param("server_id") String server_id, |
|
|
@ -43,7 +43,7 @@ public interface KillfeedRepository extends PagingAndSortingRepository<KillsInFe |
|
|
|
@Query(value = "select k from KillsInFeed k where " + |
|
|
|
"(:utime is null or k.utime >= :utime) and " + |
|
|
|
"(:server_id is null or k.server_id like :server_id) and" + |
|
|
|
"(:account_id is null or (k.victim_id in :accounts_id and k.attacker_id != k.victim_id))") |
|
|
|
"(:account_id is null or (k.victim_id in :accounts_id and k.attacker_id != k.victim_id)) order by k.id desc") |
|
|
|
Page<KillsInFeed> getDeads(Pageable pageable, |
|
|
|
@Param("accounts_id") List<Long> accounts_id, |
|
|
|
@Param("server_id") String server_id, |
|
|
@ -73,7 +73,7 @@ public interface KillfeedRepository extends PagingAndSortingRepository<KillsInFe |
|
|
|
@Query(value = "select k from KillsInFeed k where " + |
|
|
|
"(:utime is null or k.utime >= :utime) and " + |
|
|
|
"(:server_id is null or k.server_id like :server_id) and" + |
|
|
|
"(:account_id is null or k.assister_id in :accounts_id)") |
|
|
|
"(:account_id is null or k.assister_id in :accounts_id) order by k.id desc") |
|
|
|
Page<KillsInFeed> getAssists(Pageable pageable, |
|
|
|
@Param("accounts_id") List<Long> accounts_id, |
|
|
|
@Param("server_id") String server_id, |
|
|
|