[aimedb] Change extId type to integer

This commit is contained in:
samnyan
2020-01-31 11:27:21 +08:00
parent 95512aa843
commit 955e5727d5
26 changed files with 35 additions and 31 deletions

View File

@@ -16,5 +16,5 @@ public interface UserActivityRepository extends JpaRepository<UserActivity, Long
Optional<UserActivity> findTopByUserAndActivityIdAndKindOrderByIdDesc(UserData user, int activityId, int kind);
List<UserActivity> findAllByUser_Card_ExtIdAndKindOrderBySortNumberDesc(long extId, int kind);
List<UserActivity> findAllByUser_Card_ExtIdAndKindOrderBySortNumberDesc(int extId, int kind);
}

View File

@@ -15,5 +15,5 @@ public interface UserDataRepository extends JpaRepository<UserData, Long> {
Optional<UserData> findByCard(Card card);
Optional<UserData> findByCard_ExtId(long extId);
Optional<UserData> findByCard_ExtId(int extId);
}

View File

@@ -16,5 +16,5 @@ public interface UserDuelRepository extends JpaRepository<UserDuel, Long> {
Optional<UserDuel> findTopByUserAndDuelIdOrderByIdDesc(UserData user, int duelId);
List<UserDuel> findByUser_Card_ExtId(long extId);
List<UserDuel> findByUser_Card_ExtId(int extId);
}

View File

@@ -14,5 +14,5 @@ import java.util.Optional;
public interface UserGameOptionExRepository extends JpaRepository<UserGameOptionEx, Long> {
Optional<UserGameOptionEx> findByUser(UserData user);
Optional<UserGameOptionEx> findByUser_Card_ExtId(long parseLong);
Optional<UserGameOptionEx> findByUser_Card_ExtId(int extId);
}

View File

@@ -15,5 +15,5 @@ public interface UserGameOptionRepository extends JpaRepository<UserGameOption,
Optional<UserGameOption> findByUser(UserData user);
Optional<UserGameOption> findByUser_Card_ExtId(long extId);
Optional<UserGameOption> findByUser_Card_ExtId(int extId);
}

View File

@@ -17,5 +17,5 @@ public interface UserItemRepository extends JpaRepository<UserItem, Long> {
Optional<UserItem> findTopByUserAndItemIdAndItemKindOrderByIdDesc(UserData user, int itemId, int itemKind);
Page<UserItem> findAllByUser_Card_ExtIdAndItemKind(long extId, int itemKind, Pageable pageable);
Page<UserItem> findAllByUser_Card_ExtIdAndItemKind(int extId, int itemKind, Pageable pageable);
}

View File

@@ -15,7 +15,7 @@ import java.util.Optional;
public interface UserMapRepository extends JpaRepository<UserMap, Long> {
List<UserMap> findAllByUser(UserData user);
List<UserMap> findAllByUser_Card_ExtId(long extId);
List<UserMap> findAllByUser_Card_ExtId(int extId);
Optional<UserMap> findTopByUserAndMapIdOrderByIdDesc(UserData user, int mapId);
}

View File

@@ -18,7 +18,7 @@ public interface UserMusicDetailRepository extends JpaRepository<UserMusicDetail
Optional<UserMusicDetail> findTopByUserAndMusicIdAndLevelOrderByIdDesc(UserData user, int musicId, int level);
List<UserMusicDetail> findByUser_Card_ExtId(long parseLong);
List<UserMusicDetail> findByUser_Card_ExtId(int extId);
Page<UserMusicDetail> findByUser_Card_ExtId(long aimeId, Pageable page);
Page<UserMusicDetail> findByUser_Card_ExtId(int extId, Pageable page);
}

View File

@@ -12,7 +12,7 @@ import java.util.List;
*/
@Repository
public interface UserPlaylogRepository extends JpaRepository<UserPlaylog, Long> {
List<UserPlaylog> findByUser_Card_ExtIdAndLevelNot(long extId, int levelNot, Pageable page);
List<UserPlaylog> findByUser_Card_ExtIdAndLevelNot(int extId, int levelNot, Pageable page);
List<UserPlaylog> findByUser_Card_ExtId(long parseLong, Pageable page);
List<UserPlaylog> findByUser_Card_ExtId(int extId, Pageable page);
}