修复数据权限错误问题

This commit is contained in:
阿沐 2023-02-17 08:26:20 +08:00
parent 060f3987a2
commit 4c6123a0af

View File

@ -5,7 +5,7 @@
<select id="getDataScopeByUserId" resultType="integer"> <select id="getDataScopeByUserId" resultType="integer">
select min(t1.data_scope) from sys_role t1, sys_user_role t2 select min(t1.data_scope) from sys_role t1, sys_user_role t2
where t1.id = t2.role_id and t2.user_id = #{userId} and t1.deleted = 0 where t1.id = t2.role_id and t2.user_id = #{userId} and t1.deleted = 0 and t2.deleted = 0
</select> </select>
</mapper> </mapper>