🐛 nickname -> account 遗漏接口修改

This commit is contained in:
ronger 2021-05-21 15:52:23 +08:00
parent 35075e62c0
commit 7b40beef62
3 changed files with 6 additions and 6 deletions

View File

@ -10,8 +10,8 @@ import org.apache.ibatis.annotations.Param;
public interface UserExtendMapper extends Mapper<UserExtend> {
/**
* 获取用户扩展信息
* @param nickname
* @param account
* @return
*/
UserExtend selectUserExtendByNickname(@Param("nickname") String nickname);
UserExtend selectUserExtendByAccount(@Param("account") String account);
}

View File

@ -251,8 +251,8 @@ public class UserServiceImpl extends AbstractService<User> implements UserServic
}
@Override
public UserExtend selectUserExtendByAccount(String nickname) {
return userExtendMapper.selectUserExtendByNickname(nickname);
public UserExtend selectUserExtendByAccount(String account) {
return userExtendMapper.selectUserExtendByAccount(account);
}
@Override

View File

@ -9,8 +9,8 @@
<result column="qq" property="qq"></result>
<result column="blog" property="blog"></result>
</resultMap>
<select id="selectUserExtendByNickname" resultMap="BaseResultMap">
<select id="selectUserExtendByAccount" resultMap="BaseResultMap">
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
</select>
</mapper>