🐛 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> { public interface UserExtendMapper extends Mapper<UserExtend> {
/** /**
* 获取用户扩展信息 * 获取用户扩展信息
* @param nickname * @param account
* @return * @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 @Override
public UserExtend selectUserExtendByAccount(String nickname) { public UserExtend selectUserExtendByAccount(String account) {
return userExtendMapper.selectUserExtendByNickname(nickname); return userExtendMapper.selectUserExtendByAccount(account);
} }
@Override @Override

View File

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