🐛 nickname -> account 遗漏接口修改
This commit is contained in:
parent
35075e62c0
commit
7b40beef62
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user