From 931a177355aed7bdaf632d372918d7f82ff9ba7f Mon Sep 17 00:00:00 2001 From: Gary Date: Sun, 7 Apr 2024 17:52:19 +0800 Subject: [PATCH] 1.check nickname in case sensitive mode --- luoo_user/src/main/java/com/luoo/user/dao/UserInfoDao.java | 1 + 1 file changed, 1 insertion(+) 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)