fix 修复 多租户相同账号登录失败问题

This commit is contained in:
疯狂的狮子li
2023-03-02 10:32:04 +08:00
parent 4b814886b2
commit 37794b5738
3 changed files with 38 additions and 1 deletions

View File

@ -102,6 +102,16 @@
where u.del_flag = '0' and u.phonenumber = #{phonenumber}
</select>
<select id="selectTenantUserByUserName" parameterType="String" resultMap="SysUserResult">
<include refid="selectUserVo"/>
where u.del_flag = '0' and u.user_name = #{userName} and u.tenant_id = #{tenantId}
</select>
<select id="selectTenantUserByPhonenumber" parameterType="String" resultMap="SysUserResult">
<include refid="selectUserVo"/>
where u.del_flag = '0' and u.phonenumber = #{phonenumber} and u.tenant_id = #{tenantId}
</select>
<select id="selectUserById" parameterType="Long" resultMap="SysUserResult">
<include refid="selectUserVo"/>
where u.del_flag = '0' and u.user_id = #{userId}