数据权限的修改

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
@@ -25,6 +25,8 @@
a.role_id,
a.parent_role_id,
a.organization_id,
a.organization_name AS organizationName,
a.top_organization_id AS topOrganizationId,
a.role_code,
a.role_name,
a.role_remark,
@@ -51,6 +53,7 @@
a.del_flag = 1
<include refid="common_where"></include>
GROUP BY a.role_id
ORDER BY COALESCE(a.update_time, a.create_time) DESC
</select>
<select id="selectByOrganizationIdAndRoleCode"
parameterType="com.mhd.user.domain.roleAggregate.repository.todo.RoleDo"
@@ -119,6 +122,16 @@
</if>
<if test="organizationId !=null">
and a.organization_id = #{organizationId}
and a.organization_name IS NOT NULL
</if>
<if test="topOrganizationId !=null">
and a.top_organization_id = #{topOrganizationId}
<if test="organizationId == null">
and a.organization_name IS NOT NULL
</if>
</if>
<if test="organizationName != null and organizationName != ''">
and a.organization_name like concat('%' , #{organizationName} , '%')
</if>
<if test="organizationIds !=null">
and a.organization_id in