|
@@ -27,6 +27,6 @@ public interface UserDeviceRepository extends BasicJpaRepository<UserDevice, Str
|
|
* @param userId the id of user
|
|
* @param userId the id of user
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @Query(value = "select u from UserDevice u where u.userId = ?1")
|
|
|
|
|
|
+ @Query(value = "select u from UserDevice u where u.userId = ?1 order by u.gmtModified desc")
|
|
List<UserDevice> findByUserId(String userId);
|
|
List<UserDevice> findByUserId(String userId);
|
|
}
|
|
}
|