|
|
@@ -230,9 +230,9 @@ public interface UserRepo extends JpaRepository<User, Long>, JpaSpecificationExe
|
|
|
List<User> findAllByIdIn(List<Long> ids);
|
|
|
|
|
|
@Query(nativeQuery = true, value = "select u.id, u.nickname, cid " +
|
|
|
- "from raex.user u " +
|
|
|
+ "from user u " +
|
|
|
" inner join (select collection_invitor, count(id) cid " +
|
|
|
- " from raex.user " +
|
|
|
+ " from user ci1 " +
|
|
|
" where collection_id = ?1 " +
|
|
|
" group by collection_invitor) ci1 on ci1.collection_invitor = u.id " +
|
|
|
"order by cid desc;")
|