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
20145822
Commit
20145822
authored
Dec 10, 2017
by
naan1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改relation的表名
parent
26e21ccc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
guns-admin/src/main/java/com/stylefeng/guns/common/persistence/model/Relation.java
+2
-0
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/MenuDao.xml
+1
-1
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/RoleDao.xml
+1
-1
No files found.
guns-admin/src/main/java/com/stylefeng/guns/common/persistence/model/Relation.java
View file @
20145822
...
@@ -2,6 +2,7 @@ package com.stylefeng.guns.common.persistence.model;
...
@@ -2,6 +2,7 @@ package com.stylefeng.guns.common.persistence.model;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -14,6 +15,7 @@ import java.io.Serializable;
...
@@ -14,6 +15,7 @@ import java.io.Serializable;
* @author stylefeng
* @author stylefeng
* @since 2017-07-11
* @since 2017-07-11
*/
*/
@TableName
(
"sys_relation"
)
public
class
Relation
extends
Model
<
Relation
>
{
public
class
Relation
extends
Model
<
Relation
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/MenuDao.xml
View file @
20145822
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
</select>
</select>
<delete
id=
"deleteRelationByMenu"
>
<delete
id=
"deleteRelationByMenu"
>
delete from relation where menuid = #{menuId}
delete from
sys_
relation where menuid = #{menuId}
</delete>
</delete>
<select
id=
"getResUrlsByRoleId"
resultType=
"string"
>
<select
id=
"getResUrlsByRoleId"
resultType=
"string"
>
...
...
guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/RoleDao.xml
View file @
20145822
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</select>
</select>
<delete
id=
"deleteRolesById"
>
<delete
id=
"deleteRolesById"
>
delete from relation where roleid = #{roleId}
delete from
sys_
relation where roleid = #{roleId}
</delete>
</delete>
<select
id=
"roleTreeList"
resultType=
"com.stylefeng.guns.core.node.ZTreeNode"
>
<select
id=
"roleTreeList"
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