wangqifan пре 3 година
родитељ
комит
6fc09c4549
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/main/java/com/izouma/nineth/repo/AssetRepo.java

+ 2 - 2
src/main/java/com/izouma/nineth/repo/AssetRepo.java

@@ -157,6 +157,6 @@ public interface AssetRepo extends JpaRepository<Asset, Long>, JpaSpecificationE
 
     Long countAllByCollectionIdAndUserIdAndSource(Long collectionId, Long userId, AssetSource source);
 
-    @Query(nativeQuery = true, value = "select count(a.id) count,a.owner_id userId,a.owner_avatar avatar,a.`owner` nickname from asset a inner join `user` u on u.id = a.owner_id where a.status = 'NORMAL' and a.type = 'DOMAIN' GROUP BY a.owner_id ORDER BY count(a.id) desc limit 20")
-    List<Map<String,Object>> domainTop20();
+    @Query(nativeQuery = true, value = "select count(a.id) countNum,a.owner_id userId,a.owner_avatar avatar,a.`owner` nickname from asset a inner join `user` u on u.id = a.owner_id where a.status = 'NORMAL' and a.type = 'DOMAIN' GROUP BY a.owner_id ORDER BY count(a.id) desc limit 20")
+    List<Map<String, Object>> domainTop20();
 }