Commit 701769ab by fengshuonan

兼容pgsql,优化open字段的兼容性

parent 60063824
......@@ -32,7 +32,7 @@
ELSE
'false'
END
) as 'open' from sys_dept
) as "open" from sys_dept
</select>
<select id="list" resultType="map">
......
......@@ -33,7 +33,7 @@
ELSE
'false'
END
) as 'open' from sys_dict where dict_type_id = #{dictTypeId}
) as "open" from sys_dict where dict_type_id = #{dictTypeId}
</select>
<select id="likeParentIds" resultType="cn.stylefeng.guns.modular.system.entity.Dict">
......
......@@ -70,7 +70,7 @@
ELSE
'false'
END
) as 'open'
) as "open"
FROM
sys_menu m1
LEFT join sys_menu m2 ON m1.pcode = m2.code
......@@ -98,7 +98,7 @@
ELSE
'false'
END
) as 'open',
) as "open",
(
CASE
WHEN (m3.menu_id = 0 OR m3.menu_id
......
......@@ -38,7 +38,7 @@
<select id="roleTreeList" resultType="cn.stylefeng.guns.core.common.node.ZTreeNode">
select role_id AS id, pid as pId,
name as name, (case when (pid = 0 or pid is null) then 'true'
else 'false' end) as 'open' from sys_role
else 'false' end) as "open" from sys_role
</select>
<select id="roleTreeListByRoleId" resultType="cn.stylefeng.guns.core.common.node.ZTreeNode">
......@@ -53,7 +53,7 @@
ELSE
'false'
END
) as 'open',
) as "open",
(
CASE
WHEN (r1.role_id = 0 OR r1.role_id IS NULL) THEN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment