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
701769ab
Commit
701769ab
authored
Apr 02, 2019
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兼容pgsql,优化open字段的兼容性
parent
60063824
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
sql/guns_pgsql.sql
+0
-0
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/DeptMapper.xml
+1
-1
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/DictMapper.xml
+1
-1
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/MenuMapper.xml
+2
-2
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/RoleMapper.xml
+2
-2
No files found.
sql/guns_pgsql.sql
0 → 100644
View file @
701769ab
This diff is collapsed.
Click to expand it.
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/DeptMapper.xml
View file @
701769ab
...
...
@@ -32,7 +32,7 @@
ELSE
'false'
END
) as
'open'
from sys_dept
) as
"open"
from sys_dept
</select>
<select
id=
"list"
resultType=
"map"
>
...
...
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/DictMapper.xml
View file @
701769ab
...
...
@@ -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"
>
...
...
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/MenuMapper.xml
View file @
701769ab
...
...
@@ -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
...
...
src/main/java/cn/stylefeng/guns/modular/system/mapper/mapping/RoleMapper.xml
View file @
701769ab
...
...
@@ -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
...
...
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