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