forked from Cookies_Github_mirror/AquaDX
[O] Generalize ranking and find by card
This commit is contained in:
@@ -3,7 +3,6 @@ package icu.samnyan.aqua.sega.ongeki.dao.userdata
|
||||
import icu.samnyan.aqua.net.games.GenericUserDataRepo
|
||||
import icu.samnyan.aqua.sega.general.model.Card
|
||||
import icu.samnyan.aqua.sega.ongeki.model.userdata.UserData
|
||||
import org.springframework.data.jpa.repository.Query
|
||||
import org.springframework.stereotype.Repository
|
||||
import org.springframework.transaction.annotation.Transactional
|
||||
import java.util.*
|
||||
@@ -15,13 +14,8 @@ import java.util.*
|
||||
interface UserDataRepository : GenericUserDataRepo<UserData, Long> {
|
||||
fun findByCard_ExtIdIn(userIds: Collection<Long>): List<UserData>
|
||||
|
||||
override fun findByCard(card: Card): UserData?
|
||||
|
||||
fun findByCard_ExtId(aimeId: Long): Optional<UserData>
|
||||
|
||||
@Transactional
|
||||
fun deleteByCard(card: Card)
|
||||
|
||||
@Query("select count(*) from OngekiUserData where playerRating > :rating")
|
||||
override fun getRanking(rating: Int): Long
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user