瀏覽代碼

元域名top 60

wangqifan 3 年之前
父節點
當前提交
b1cd934f5f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/izouma/nineth/repo/AssetRepo.java

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

@@ -161,7 +161,7 @@ public interface AssetRepo extends JpaRepository<Asset, Long>, JpaSpecificationE
 
 
     Long countAllByCollectionIdAndUserIdAndSource(Long collectionId, Long userId, AssetSource source);
     Long countAllByCollectionIdAndUserIdAndSource(Long collectionId, Long userId, AssetSource source);
 
 
-    @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")
+    @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 60")
     List<Map<String, Object>> domainTop20();
     List<Map<String, Object>> domainTop20();
 
 
     Asset findFirstByNameAndStatus(String name, AssetStatus status);
     Asset findFirstByNameAndStatus(String name, AssetStatus status);