达梦适配修改

This commit is contained in:
王奎兴
2025-12-05 10:47:46 +08:00
parent 5005f4291f
commit 32f12bb138
49 changed files with 254 additions and 209 deletions
@@ -15,7 +15,7 @@
a.role_remark,
a.role_data_scope,
a.role_status
FROM `role` a
FROM role a
WHERE a.del_flag = 1
</sql>
@@ -44,9 +44,9 @@
a.role_grade,
COUNT(DISTINCT u.user_id) roleUserCount
FROM
`role` a
role a
LEFT JOIN user_role b on a.role_id = b.role_id
left join user u on b.user_id = u.user_id and u.del_flag = 1
left join "USER" u on b.user_id = u.user_id and u.del_flag = 1
WHERE
a.del_flag = 1
<include refid="common_where"></include>
@@ -67,7 +67,7 @@
a.role_data_scope,
a.role_status
FROM
`role` a
role a
WHERE
a.del_flag=1
<include refid="common_where"></include>
@@ -86,7 +86,7 @@
a.role_remark,
a.role_data_scope,
a.role_status
FROM `role` a
FROM role a
WHERE a.role_id = #{value}
</select>
<select id="selectByRoleId" parameterType="com.mhd.common.core.domain.po.RolePO"
@@ -159,7 +159,7 @@
<!-- 根据组织ID物理删除角色 -->
<select id="deleteByOrganizationId" parameterType="java.lang.Long">
DELETE
FROM `role` a
FROM role a
WHERE a.del_flag = 1
and a.organization_id = #{value}
</select>
@@ -167,9 +167,9 @@
<!-- 根据IDs合集查询角色名称 -->
<select id="findRoleNameByRoleIds" parameterType="java.lang.Long" resultType="java.lang.String">
SELECT
GROUP_CONCAT( a.role_name SEPARATOR ';' ) AS roleName
WM_CONCAT( a.role_name SEPARATOR ';' ) AS roleName
FROM
`role` a
role a
WHERE
a.del_flag = 1
AND a.role_id IN