24 lines
756 B
XML
Raw Normal View History

2023-06-15 00:58:01 +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">
<mapper namespace="org.dromara.system.mapper.SysSocialMapper">
2023-06-15 00:58:01 +08:00
<resultMap type="org.dromara.system.domain.vo.SysSocialVo" id="SysSocialAuthResult">
2023-06-15 00:58:01 +08:00
<id property="id" column="id"/>
</resultMap>
<select id="selectByAuthId" parameterType="String" resultMap="SysSocialAuthResult">
2023-06-15 19:30:17 +08:00
select b.user_id,
b.tenant_id,
b.user_name,
b.password,
a.auth_id,
a.source
from sys_social a
2023-06-15 19:30:17 +08:00
left join sys_user b on a.user_id = b.user_id
2023-06-15 00:58:01 +08:00
where a.auth_id = #{authId}
</select>
</mapper>