Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
4d76adf1
Commit
4d76adf1
authored
Aug 17, 2017
by
stylefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新mapper
parent
e7f79e19
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DeptDao.xml
+1
-1
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/MenuDao.xml
+3
-3
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/RoleDao.xml
+2
-2
No files found.
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DeptDao.xml
View file @
4d76adf1
...
...
@@ -2,7 +2,7 @@
<!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"
>
<select
id=
"tree"
resultType=
"com.stylefeng.guns.co
mmon
.node.ZTreeNode"
>
<select
id=
"tree"
resultType=
"com.stylefeng.guns.co
re
.node.ZTreeNode"
>
select id,pid as pId,simplename as name,
(
CASE
...
...
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/MenuDao.xml
View file @
4d76adf1
...
...
@@ -26,7 +26,7 @@
relation where roleid = #{roleId}
</select>
<select
id=
"menuTreeList"
resultType=
"com.stylefeng.guns.co
mmon
.node.ZTreeNode"
>
<select
id=
"menuTreeList"
resultType=
"com.stylefeng.guns.co
re
.node.ZTreeNode"
>
SELECT
m1.id AS id,
(
...
...
@@ -54,7 +54,7 @@
m1.id ASC
</select>
<select
id=
"menuTreeListByMenuIds"
resultType=
"com.stylefeng.guns.co
mmon
.node.ZTreeNode"
>
<select
id=
"menuTreeListByMenuIds"
resultType=
"com.stylefeng.guns.co
re
.node.ZTreeNode"
>
SELECT
m1.id AS id,
(
...
...
@@ -116,7 +116,7 @@
where rel.roleid = #{roleId}
</select>
<select
id=
"getMenusByRoleIds"
resultType=
"com.stylefeng.guns.co
mmon
.node.MenuNode"
>
<select
id=
"getMenusByRoleIds"
resultType=
"com.stylefeng.guns.co
re
.node.MenuNode"
>
SELECT
m1.id AS id,
m1.icon AS icon,
...
...
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/RoleDao.xml
View file @
4d76adf1
...
...
@@ -19,13 +19,13 @@
delete from relation where roleid = #{roleId}
</delete>
<select
id=
"roleTreeList"
resultType=
"com.stylefeng.guns.co
mmon
.node.ZTreeNode"
>
<select
id=
"roleTreeList"
resultType=
"com.stylefeng.guns.co
re
.node.ZTreeNode"
>
select id "id",pId
"pId",name as "name",(case when (pId=0 or pId is null) then 'true'
else 'false' end) "open" from role
</select>
<select
id=
"roleTreeListByRoleId"
resultType=
"com.stylefeng.guns.co
mmon
.node.ZTreeNode"
>
<select
id=
"roleTreeListByRoleId"
resultType=
"com.stylefeng.guns.co
re
.node.ZTreeNode"
>
SELECT
r.id "id",
pId "pId",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment