Browse Source

Merge branch 'master' of http://gogs.efunbox.cn:3000/Rankin/rankin

guozhaoshun 6 years ago
parent
commit
0b86639a2a

+ 1 - 1
rankin-user-service/src/main/java/cn/rankin/userservice/repository/UserDeviceRepository.java

@@ -27,6 +27,6 @@ public interface UserDeviceRepository extends BasicJpaRepository<UserDevice, Str
      * @param userId the id of user
      * @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);
 }