mirror of https://github.com/hykilpikonna/AquaDX
[M] riik CMission repos
parent
f0923c51e6
commit
da467ec8ee
|
@ -1,15 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.chusan.dao.userdata;
|
||||
|
||||
import icu.samnyan.aqua.sega.chusan.model.userdata.UserCMissionProgress;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
@Repository("ChusanUserCMissionProgressRepository")
|
||||
public interface UserCMissionProgressRepository extends JpaRepository<UserCMissionProgress, Long> {
|
||||
List<UserCMissionProgress> findByUser_Card_ExtIdAndMissionId(Long extId, int missionId);
|
||||
|
||||
Optional<UserCMissionProgress> findByUser_Card_ExtIdAndMissionIdAndOrder(Long extId, int missionId, int order);
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.chusan.dao.userdata;
|
||||
|
||||
import icu.samnyan.aqua.sega.chusan.model.userdata.UserCMission;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
@Repository("ChusanUserCMissionRepository")
|
||||
public interface UserCMissionRepository extends JpaRepository<UserCMission, Long> {
|
||||
Optional<UserCMission> findByUser_Card_ExtIdAndMissionId(Long extId, int missionId);
|
||||
}
|
|
@ -42,8 +42,8 @@ interface Chu3UserLoginBonusRepo : JpaRepository<UserLoginBonus, Long> {
|
|||
|
||||
interface Chu3UserActivityRepo : Chu3UserLinked<UserActivity> {
|
||||
fun findTopByUserAndActivityIdAndKindOrderByIdDesc(user: Chu3UserData, activityId: Int, kind: Int): Optional<UserActivity>
|
||||
fun findByUserAndActivityIdAndKind(user: Chu3UserData, activityId: Int, kind: Int): UserActivity?
|
||||
|
||||
fun findAllByUser_Card_ExtIdAndKindOrderBySortNumberDesc(extId: Long, kind: Int): List<UserActivity>
|
||||
fun findAllByUser_Card_ExtIdAndKind(extId: Long, kind: Int): List<UserActivity>
|
||||
}
|
||||
|
||||
|
@ -55,6 +55,7 @@ interface Chu3UserCardPrintStateRepo : Chu3UserLinked<UserCardPrintState> {
|
|||
|
||||
interface Chu3UserCharacterRepo : Chu3UserLinked<UserCharacter> {
|
||||
fun findTopByUserAndCharacterIdOrderByIdDesc(user: Chu3UserData, characterId: Int): Optional<UserCharacter>
|
||||
fun findByUserAndCharacterId(user: Chu3UserData, characterId: Int): UserCharacter?
|
||||
}
|
||||
|
||||
interface Chu3UserChargeRepo : Chu3UserLinked<UserCharge> {
|
||||
|
@ -63,12 +64,14 @@ interface Chu3UserChargeRepo : Chu3UserLinked<UserCharge> {
|
|||
|
||||
interface Chu3UserCourseRepo : Chu3UserLinked<UserCourse> {
|
||||
fun findTopByUserAndCourseIdOrderByIdDesc(user: Chu3UserData, courseId: Int): Optional<UserCourse>
|
||||
fun findByUserAndCourseId(user: Chu3UserData, courseId: Int): UserCourse?
|
||||
}
|
||||
|
||||
interface Chu3UserDataRepo : GenericUserDataRepo<Chu3UserData>
|
||||
|
||||
interface Chu3UserDuelRepo : Chu3UserLinked<UserDuel> {
|
||||
fun findTopByUserAndDuelIdOrderByIdDesc(user: Chu3UserData, duelId: Int): Optional<UserDuel>
|
||||
fun findByUserAndDuelId(user: Chu3UserData, duelId: Int): UserDuel?
|
||||
}
|
||||
|
||||
interface Chu3UserGachaRepo : Chu3UserLinked<UserGacha> {
|
||||
|
@ -85,6 +88,7 @@ interface Chu3UserGeneralDataRepo : Chu3UserLinked<UserGeneralData> {
|
|||
|
||||
interface Chu3UserItemRepo : Chu3UserLinked<UserItem> {
|
||||
fun findTopByUserAndItemIdAndItemKindOrderByIdDesc(user: Chu3UserData, itemId: Int, itemKind: Int): Optional<UserItem>
|
||||
fun findByUserAndItemIdAndItemKind(user: Chu3UserData, itemId: Int, itemKind: Int): UserItem?
|
||||
|
||||
fun findAllByUser_Card_ExtIdAndItemKind(extId: Long, itemKind: Int, pageable: Pageable): Page<UserItem>
|
||||
|
||||
|
@ -92,14 +96,14 @@ interface Chu3UserItemRepo : Chu3UserLinked<UserItem> {
|
|||
}
|
||||
|
||||
interface Chu3UserMapRepo : Chu3UserLinked<UserMap> {
|
||||
fun findTopByUserAndMapAreaIdOrderByIdDesc(user: Chu3UserData, mapAreaId: Int): Optional<UserMap>
|
||||
fun findByUserAndMapAreaId(user: Chu3UserData, mapAreaId: Int): UserMap?
|
||||
|
||||
@Query("SELECT uma FROM ChusanUserMapArea uma WHERE uma.user.card.extId = :extId AND uma.mapAreaId IN :mapAreaIds")
|
||||
fun findAllUserMaps(extId: Long, mapAreaIds: List<Int>): List<UserMap>
|
||||
fun findAllByUserCardExtIdAndMapAreaIdIn(user: Long, mapAreaIds: List<Int>): List<UserMap>
|
||||
}
|
||||
|
||||
interface Chu3UserMusicDetailRepo : Chu3UserLinked<UserMusicDetail> {
|
||||
fun findTopByUserAndMusicIdAndLevelOrderByIdDesc(user: Chu3UserData, musicId: Int, level: Int): Optional<UserMusicDetail>
|
||||
fun findByUserAndMusicIdAndLevel(user: Chu3UserData, musicId: Int, level: Int): UserMusicDetail?
|
||||
|
||||
fun findByUser_Card_ExtIdAndMusicId(extId: Long, musicId: Int): List<UserMusicDetail>
|
||||
}
|
||||
|
@ -110,6 +114,16 @@ interface Chu3UserPlaylogRepo : GenericPlaylogRepo<UserPlaylog>, Chu3UserLinked<
|
|||
fun findByUser_Card_ExtIdAndMusicIdAndLevel(extId: Long, musicId: Int, level: Int): List<UserPlaylog>
|
||||
}
|
||||
|
||||
interface UserCMissionRepo : Chu3UserLinked<UserCMission> {
|
||||
fun findByUser_Card_ExtIdAndMissionId(extId: Long, missionId: Int): Optional<UserCMission>
|
||||
}
|
||||
|
||||
interface UserCMissionProgressRepo : Chu3UserLinked<UserCMissionProgress> {
|
||||
fun findByUser_Card_ExtIdAndMissionId(extId: Long, missionId: Int): List<UserCMissionProgress>
|
||||
|
||||
fun findByUser_Card_ExtIdAndMissionIdAndOrder(extId: Long, missionId: Int, order: Int): Optional<UserCMissionProgress>
|
||||
}
|
||||
|
||||
interface Chu3GameAvatarAccRepo : JpaRepository<AvatarAcc, Long>
|
||||
|
||||
interface Chu3GameCharacterRepo : JpaRepository<Character, Long>
|
||||
|
@ -179,6 +193,8 @@ class Chu3Repos(
|
|||
val userMap: Chu3UserMapRepo,
|
||||
val userMusicDetail: Chu3UserMusicDetailRepo,
|
||||
val userPlaylog: Chu3UserPlaylogRepo,
|
||||
val userCMission: UserCMissionRepo,
|
||||
val userCMissionProgress: UserCMissionProgressRepo,
|
||||
val gameAvatarAcc: Chu3GameAvatarAccRepo,
|
||||
val gameCharacter: Chu3GameCharacterRepo,
|
||||
val gameCharge: Chu3GameChargeRepo,
|
Loading…
Reference in New Issue