数据权限的修改

This commit is contained in:
1745237360-cloud
2026-01-10 16:39:33 +08:00
parent 29b24e8450
commit 4b427e1b2e
97 changed files with 3056 additions and 466 deletions
@@ -9,6 +9,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.*
from
common_route a
<if test="commonRouteDo.organizationId != null">
LEFT JOIN "USER" u ON a.user_id = u.user_id AND u.del_flag = 0
</if>
WHERE
a.del_flag = 1
</sql>
@@ -26,6 +29,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and (a.mail_name like concat('%', #{commonRouteDo.synthesize}, '%') OR a.mail_phone LIKE concat('%', #{commonRouteDo.synthesize}, '%') OR a.mail_address_plot LIKE concat('%', #{commonRouteDo.synthesize}, '%')
OR a.addressee_name like concat('%', #{commonRouteDo.synthesize}, '%') OR a.addressee_phone LIKE concat('%', #{commonRouteDo.synthesize}, '%') OR a.addressee_address_plot LIKE concat('%', #{commonRouteDo.synthesize}, '%'))
</if>
<!-- 组织数据权限过滤:通过用户表关联来过滤组织数据 -->
<if test="commonRouteDo.organizationId != null">
and u.organization_id = #{commonRouteDo.organizationId}
</if>
</sql>
<select id="selectCommonRouteByCommonRouteId" parameterType="java.lang.Long"