diff --git a/luoo_user/src/main/java/com/luoo/user/dao/UserInfoDao.java b/luoo_user/src/main/java/com/luoo/user/dao/UserInfoDao.java index 2b24bdb..b7a7ad4 100644 --- a/luoo_user/src/main/java/com/luoo/user/dao/UserInfoDao.java +++ b/luoo_user/src/main/java/com/luoo/user/dao/UserInfoDao.java @@ -30,6 +30,7 @@ public interface UserInfoDao extends JpaRepository, JpaSpecifi @Query(value = "update tb_user_info set fans_count=fans_count+? where id = ?", nativeQuery = true) void updatefanscount(int x, String friendid); + @Query(value = "select count(*) from tb_user_info where BINARY nick_name = ?1", nativeQuery = true) public long countByNickName(String nickName); @Query(value = "select * from tb_user_info where id in ?1 order by field(id,?1)", nativeQuery = true)