Fix some type not up to date

pull/1/head
samnyan 2020-01-31 22:13:25 +08:00
parent 531e85789f
commit ad0996fa8d
4 changed files with 5 additions and 5 deletions

View File

@ -17,5 +17,5 @@ public interface UserCharacterRepository extends JpaRepository<UserCharacter, Lo
Optional<UserCharacter> findTopByUserAndCharacterIdOrderByIdDesc(UserData user, int characterId); Optional<UserCharacter> findTopByUserAndCharacterIdOrderByIdDesc(UserData user, int characterId);
Page<UserCharacter> findByUser_Card_ExtId(long parseLong, Pageable pageable); Page<UserCharacter> findByUser_Card_ExtId(int extId, Pageable pageable);
} }

View File

@ -13,7 +13,7 @@ import java.util.Optional;
*/ */
@Repository @Repository
public interface UserChargeRepository extends JpaRepository<UserCharge, Long> { public interface UserChargeRepository extends JpaRepository<UserCharge, Long> {
List<UserCharge> findByUser_Card_ExtId(long userId); List<UserCharge> findByUser_Card_ExtId(int extId);
Optional<UserCharge> findByUserAndChargeId(UserData extId, int chargeId); Optional<UserCharge> findByUserAndChargeId(UserData extId, int chargeId);
} }

View File

@ -17,7 +17,7 @@ import java.util.Optional;
public interface UserCourseRepository extends JpaRepository<UserCourse, Long> { public interface UserCourseRepository extends JpaRepository<UserCourse, Long> {
Optional<UserCourse> findTopByUserAndCourseIdOrderByIdDesc(UserData user, int courseId); Optional<UserCourse> findTopByUserAndCourseIdOrderByIdDesc(UserData user, int courseId);
Page<UserCourse> findByUser_Card_ExtId(long aimeId, Pageable page); Page<UserCourse> findByUser_Card_ExtId(int extId, Pageable page);
List<UserCourse> findByUser_Card_ExtId(long aimeId); List<UserCourse> findByUser_Card_ExtId(int extId);
} }

View File

@ -15,5 +15,5 @@ public interface UserDataExRepository extends JpaRepository<UserDataEx, Long> {
Optional<UserDataEx> findByUser(UserData user); Optional<UserDataEx> findByUser(UserData user);
Optional<UserDataEx> findByUser_Card_ExtId(long userId); Optional<UserDataEx> findByUser_Card_ExtId(int extId);
} }