Browse Source

search alt account fix

master
gsd 1 month ago
parent
commit
715c4148df
  1. 1
      src/main/java/app/controllers/admin/DBController.java
  2. 2
      src/main/java/app/repositories/GametimeRepository.java

1
src/main/java/app/controllers/admin/DBController.java

@ -1,6 +1,5 @@
package app.controllers.admin;
import app.annotations.enums.AuthMethod;
import app.annotations.enums.CollectStages;
import app.annotations.interfaces.CheckPermitionFlag;
import app.annotations.interfaces.CheckWebAccess;

2
src/main/java/app/repositories/GametimeRepository.java

@ -15,6 +15,6 @@ public interface GametimeRepository extends PagingAndSortingRepository<Gametime,
@Query(value = "select g from Gametime g where g.account_id = :account_id order by g.id desc limit 1")
Gametime searchGametimeByAccountId(@Param("account_id") Long account_id);
@Query(value = "select g.steam_id from Gametime g where g.account_id = :account_id and g.connect_ip not like '' and g.connect_ip not like '10.%' group by g.connect_ip, g.steam_id, g.id order by g.id desc")
@Query(value = "select g.steam_id from Gametime g where g.connect_ip in (select gg.connect_ip from Gametime gg where gg.account_id = :account_id and gg.connect_ip not like '10.%' group by gg.connect_ip, gg.id order by gg.id) group by g.steam_id")
List<String> searchAccountsByAccountId(@Param("account_id") Long account_id);
}

Loading…
Cancel
Save