release: PC 门店防呆

release-2024-04-25
huangyw 3 months ago
parent b1b8747669
commit 96548225a2

@ -55,5 +55,6 @@ public interface UserInfoDao extends JpaRepository<UserInfo, String>, JpaSpecifi
" and vip_expire_time < now()", nativeQuery = true)
public List<UserInfo> getExpireVipList();
public List<UserInfo> getUserInfosByNickNameLike(String nickName);
@Query(value = "select * from tb_user_info where nick_name like ?1 limit 50", nativeQuery = true)
public List<UserInfo> getUserInfosByNickNameLikeLimit50(String nickName);
}

@ -868,7 +868,7 @@ public class UserInfoService {
if (StringUtils.isBlank(nickName)) {
return null;
} else {
return userInfoDao.getUserInfosByNickNameLike("%" + nickName + "%");
return userInfoDao.getUserInfosByNickNameLikeLimit50("%" + nickName + "%");
}
}

Loading…
Cancel
Save