数据权限的修改
This commit is contained in:
+7
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user