Commit 4d76adf1 by stylefeng

更新mapper

parent e7f79e19
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.stylefeng.guns.modular.system.dao.DeptDao"> <mapper namespace="com.stylefeng.guns.modular.system.dao.DeptDao">
<select id="tree" resultType="com.stylefeng.guns.common.node.ZTreeNode"> <select id="tree" resultType="com.stylefeng.guns.core.node.ZTreeNode">
select id,pid as pId,simplename as name, select id,pid as pId,simplename as name,
( (
CASE CASE
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
relation where roleid = #{roleId} relation where roleid = #{roleId}
</select> </select>
<select id="menuTreeList" resultType="com.stylefeng.guns.common.node.ZTreeNode"> <select id="menuTreeList" resultType="com.stylefeng.guns.core.node.ZTreeNode">
SELECT SELECT
m1.id AS id, m1.id AS id,
( (
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
m1.id ASC m1.id ASC
</select> </select>
<select id="menuTreeListByMenuIds" resultType="com.stylefeng.guns.common.node.ZTreeNode"> <select id="menuTreeListByMenuIds" resultType="com.stylefeng.guns.core.node.ZTreeNode">
SELECT SELECT
m1.id AS id, m1.id AS id,
( (
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
where rel.roleid = #{roleId} where rel.roleid = #{roleId}
</select> </select>
<select id="getMenusByRoleIds" resultType="com.stylefeng.guns.common.node.MenuNode"> <select id="getMenusByRoleIds" resultType="com.stylefeng.guns.core.node.MenuNode">
SELECT SELECT
m1.id AS id, m1.id AS id,
m1.icon AS icon, m1.icon AS icon,
......
...@@ -19,13 +19,13 @@ ...@@ -19,13 +19,13 @@
delete from relation where roleid = #{roleId} delete from relation where roleid = #{roleId}
</delete> </delete>
<select id="roleTreeList" resultType="com.stylefeng.guns.common.node.ZTreeNode"> <select id="roleTreeList" resultType="com.stylefeng.guns.core.node.ZTreeNode">
select id "id",pId select id "id",pId
"pId",name as "name",(case when (pId=0 or pId is null) then 'true' "pId",name as "name",(case when (pId=0 or pId is null) then 'true'
else 'false' end) "open" from role else 'false' end) "open" from role
</select> </select>
<select id="roleTreeListByRoleId" resultType="com.stylefeng.guns.common.node.ZTreeNode"> <select id="roleTreeListByRoleId" resultType="com.stylefeng.guns.core.node.ZTreeNode">
SELECT SELECT
r.id "id", r.id "id",
pId "pId", pId "pId",
......
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