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
18d4fa1c
Commit
18d4fa1c
authored
Dec 10, 2017
by
naan1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改role的表名
parent
20145822
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
guns-admin/src/main/java/com/stylefeng/guns/common/persistence/model/Role.java
+2
-0
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/common/persistence/model/Role.java
View file @
18d4fa1c
...
...
@@ -2,6 +2,7 @@ package com.stylefeng.guns.common.persistence.model;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
java.io.Serializable
;
...
...
@@ -14,6 +15,7 @@ import java.io.Serializable;
* @author stylefeng
* @since 2017-07-11
*/
@TableName
(
"sys_role"
)
public
class
Role
extends
Model
<
Role
>
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/RoleDao.xml
View file @
18d4fa1c
...
...
@@ -9,7 +9,7 @@
<select
id=
"selectRoles"
resultType=
"map"
>
select
<include
refid=
"Base_Column_List"
/>
from role
from
sys_
role
<if
test=
"condition != null"
>
where name like CONCAT('%',#{condition},'%')
</if>
...
...
@@ -22,7 +22,7 @@
<select
id=
"roleTreeList"
resultType=
"com.stylefeng.guns.core.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
else 'false' end) "open" from
sys_
role
</select>
<select
id=
"roleTreeListByRoleId"
resultType=
"com.stylefeng.guns.core.node.ZTreeNode"
>
...
...
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