2020-11-09 22:00:25 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
2020-11-19 11:52:13 +08:00
|
|
|
<mapper namespace="com.rymcu.forest.mapper.UserExtendMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.rymcu.forest.entity.UserExtend">
|
2020-11-09 22:00:25 +08:00
|
|
|
<result column="id_user" property="idUser"></result>
|
|
|
|
<result column="github" property="github"></result>
|
|
|
|
<result column="weibo" property="weibo"></result>
|
|
|
|
<result column="weixin" property="weixin"></result>
|
|
|
|
<result column="qq" property="qq"></result>
|
|
|
|
<result column="blog" property="blog"></result>
|
|
|
|
</resultMap>
|
|
|
|
<select id="selectUserExtendByNickname" resultMap="BaseResultMap">
|
2021-01-25 18:27:41 +08:00
|
|
|
select vue.* from forest_user_extend vue join forest_user vu on vue.id_user = vu.id
|
2020-11-09 22:00:25 +08:00
|
|
|
where vu.nickname = #{nickname} limit 1
|
|
|
|
</select>
|
|
|
|
</mapper>
|