feat: 添加根据手机号获取用户认证信息

This commit is contained in:
Ray.Hao
2025-01-12 21:53:33 +08:00
parent aa444ac3e3
commit 4fb317c4b3
3 changed files with 37 additions and 2 deletions

View File

@@ -159,6 +159,24 @@
t1.openid = #{openid} AND t1.is_deleted = 0
</select>
<!-- 根据手机号获取用户的认证信息 -->
<select id="getUserAuthInfoByMobile" resultMap="UserAuthMap">
SELECT
t1.id userId,
t1.username,
t1.nickname,
t1.PASSWORD,
t1.STATUS,
t1.dept_id ,
t3.CODE
FROM
sys_user t1
LEFT JOIN sys_user_role t2 ON t2.user_id = t1.id
LEFT JOIN sys_role t3 ON t3.id = t2.role_id
WHERE
t1.mobile = #{mobile} AND t1.is_deleted = 0
</select>
<!-- 获取用户导出列表 -->
<select id="listExportUsers" resultType="com.youlai.boot.system.model.dto.UserExportDTO">
SELECT
@@ -215,4 +233,6 @@
</select>
</mapper>