🐛 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> {
|
||||
/**
|
||||
* 获取用户扩展信息
|
||||
* @param nickname
|
||||
* @param account
|
||||
* @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
|
||||
public UserExtend selectUserExtendByAccount(String nickname) {
|
||||
return userExtendMapper.selectUserExtendByNickname(nickname);
|
||||
public UserExtend selectUserExtendByAccount(String account) {
|
||||
return userExtendMapper.selectUserExtendByAccount(account);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user