[+] Store net battle log at upsert

pull/99/head^2
Azalea 2025-01-04 22:12:41 -05:00
parent 877c23b9d7
commit 73792e4294
2 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,7 @@ fun ChusanController.upsertApiInit() {
listOfNotNull(
userPlaylogList, userGameOption, userMapAreaList, userCharacterList, userItemList,
userMusicDetailList, userActivityList, userChargeList, userCourseList, userDuelList,
userNetBattlelogList
).flatten().forEach { it.user = u }
// Ratings
@ -62,6 +63,7 @@ fun ChusanController.upsertApiInit() {
// Playlog
userPlaylogList?.let { db.userPlaylog.saveAll(it) }
userNetBattlelogList?.let { db.netBattleLog.saveAll(it) }
// List data
userGameOption?.get(0)?.let { obj ->

View File

@ -127,6 +127,8 @@ interface Chu3UserCMissionProgressRepo : Chu3UserLinked<UserCMissionProgress> {
fun findByUser_Card_ExtIdAndMissionIdAndOrder(extId: Long, missionId: Int, order: Int): Optional<UserCMissionProgress>
}
interface Chu3NetBattleLogRepo : Chu3UserLinked<Chu3NetBattleLog>
interface Chu3MatchingMemberRepo : JpaRepository<Chu3MatchingMember, Long> {
fun existsByUserIdAndUserName(userId: Long, userName: String): Boolean
}
@ -184,6 +186,7 @@ class Chu3Repos(
val userPlaylog: Chu3UserPlaylogRepo,
val userCMission: Chu3UserCMissionRepo,
val userCMissionProgress: Chu3UserCMissionProgressRepo,
val netBattleLog: Chu3NetBattleLogRepo,
val matchingMember: Chu3MatchingMemberRepo,
val gameCharge: Chu3GameChargeRepo,
val gameEvent: Chu3GameEventRepo,