1.check nickname in case sensitive mode

main
Gary 8 months ago
parent 89a53aa006
commit 931a177355

@ -30,6 +30,7 @@ public interface UserInfoDao extends JpaRepository<UserInfo, String>, JpaSpecifi
@Query(value = "update tb_user_info set fans_count=fans_count+? where id = ?", nativeQuery = true) @Query(value = "update tb_user_info set fans_count=fans_count+? where id = ?", nativeQuery = true)
void updatefanscount(int x, String friendid); 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); public long countByNickName(String nickName);
@Query(value = "select * from tb_user_info where id in ?1 order by field(id,?1)", nativeQuery = true) @Query(value = "select * from tb_user_info where id in ?1 order by field(id,?1)", nativeQuery = true)

Loading…
Cancel
Save