From 7b40beef627b21f5b769208b0b6529faede7fef8 Mon Sep 17 00:00:00 2001 From: ronger Date: Fri, 21 May 2021 15:52:23 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20nickname=20->=20account=20=E9=81=97?= =?UTF-8?q?=E6=BC=8F=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/rymcu/forest/mapper/UserExtendMapper.java | 4 ++-- .../java/com/rymcu/forest/service/impl/UserServiceImpl.java | 4 ++-- src/main/java/mapper/UserExtendMapper.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/rymcu/forest/mapper/UserExtendMapper.java b/src/main/java/com/rymcu/forest/mapper/UserExtendMapper.java index ba5372c..0fc51c1 100644 --- a/src/main/java/com/rymcu/forest/mapper/UserExtendMapper.java +++ b/src/main/java/com/rymcu/forest/mapper/UserExtendMapper.java @@ -10,8 +10,8 @@ import org.apache.ibatis.annotations.Param; public interface UserExtendMapper extends Mapper { /** * 获取用户扩展信息 - * @param nickname + * @param account * @return */ - UserExtend selectUserExtendByNickname(@Param("nickname") String nickname); + UserExtend selectUserExtendByAccount(@Param("account") String account); } diff --git a/src/main/java/com/rymcu/forest/service/impl/UserServiceImpl.java b/src/main/java/com/rymcu/forest/service/impl/UserServiceImpl.java index 769d13a..88ae98b 100644 --- a/src/main/java/com/rymcu/forest/service/impl/UserServiceImpl.java +++ b/src/main/java/com/rymcu/forest/service/impl/UserServiceImpl.java @@ -251,8 +251,8 @@ public class UserServiceImpl extends AbstractService implements UserServic } @Override - public UserExtend selectUserExtendByAccount(String nickname) { - return userExtendMapper.selectUserExtendByNickname(nickname); + public UserExtend selectUserExtendByAccount(String account) { + return userExtendMapper.selectUserExtendByAccount(account); } @Override diff --git a/src/main/java/mapper/UserExtendMapper.xml b/src/main/java/mapper/UserExtendMapper.xml index 953895f..6cfb667 100644 --- a/src/main/java/mapper/UserExtendMapper.xml +++ b/src/main/java/mapper/UserExtendMapper.xml @@ -9,8 +9,8 @@ - select vue.* from forest_user_extend vue join forest_user vu on vue.id_user = vu.id - where vu.nickname = #{nickname} limit 1 + where vu.account = #{account} limit 1 \ No newline at end of file