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
3496f212
Commit
3496f212
authored
Dec 08, 2018
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改主键类型
parent
f15bf0b7
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
26 additions
and
23 deletions
+26
-23
src/main/java/cn/stylefeng/guns/modular/system/entity/CodeDbinfo.java
+1
-1
src/main/java/cn/stylefeng/guns/modular/system/entity/Dept.java
+1
-1
src/main/java/cn/stylefeng/guns/modular/system/entity/Dict.java
+1
-1
src/main/java/cn/stylefeng/guns/modular/system/entity/FileInfo.java
+10
-9
src/main/java/cn/stylefeng/guns/modular/system/entity/LoginLog.java
+1
-1
src/main/java/cn/stylefeng/guns/modular/system/entity/Menu.java
+1
-1
src/main/java/cn/stylefeng/guns/modular/system/entity/Notice.java
+1
-1
src/main/java/cn/stylefeng/guns/modular/system/entity/OperationLog.java
+1
-1
src/main/java/cn/stylefeng/guns/modular/system/entity/Relation.java
+7
-5
src/main/java/cn/stylefeng/guns/modular/system/entity/Role.java
+1
-1
src/main/java/cn/stylefeng/guns/modular/system/entity/User.java
+1
-1
No files found.
src/main/java/cn/stylefeng/guns/modular/system/entity/CodeDbinfo.java
View file @
3496f212
...
...
@@ -22,7 +22,7 @@ public class CodeDbinfo implements Serializable {
private
static
final
long
serialVersionUID
=
1L
;
@TableId
(
value
=
"DB_ID"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"DB_ID"
,
type
=
IdType
.
ID_WORKER
)
private
Long
dbId
;
/**
* 别名
...
...
src/main/java/cn/stylefeng/guns/modular/system/entity/Dept.java
View file @
3496f212
...
...
@@ -25,7 +25,7 @@ public class Dept implements Serializable {
/**
* 主键id
*/
@TableId
(
value
=
"DEPT_ID"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"DEPT_ID"
,
type
=
IdType
.
ID_WORKER
)
private
Long
deptId
;
/**
* 父部门id
...
...
src/main/java/cn/stylefeng/guns/modular/system/entity/Dict.java
View file @
3496f212
...
...
@@ -25,7 +25,7 @@ public class Dict implements Serializable {
/**
* 主键id
*/
@TableId
(
value
=
"DICT_ID"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"DICT_ID"
,
type
=
IdType
.
ID_WORKER
)
private
Long
dictId
;
/**
* 父级字典id
...
...
src/main/java/cn/stylefeng/guns/modular/system/entity/FileInfo.java
View file @
3496f212
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotations.TableField;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.enums.FieldFill
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
java.io.Serializable
;
import
java.util.Date
;
...
...
@@ -11,7 +12,7 @@ import java.util.Date;
/**
* <p>
* 文件信息表
*
* </p>
*
* @author stylefeng
...
...
@@ -25,7 +26,7 @@ public class FileInfo implements Serializable {
/**
* 主键id
*/
@TableId
(
"FILE_ID"
)
@TableId
(
value
=
"FILE_ID"
,
type
=
IdType
.
ID_WORKER_STR
)
private
String
fileId
;
/**
* base64编码的文件
...
...
@@ -105,12 +106,12 @@ public class FileInfo implements Serializable {
@Override
public
String
toString
()
{
return
"FileInfo{"
+
", fileId="
+
fileId
+
", fileData="
+
fileData
+
", createTime="
+
createTime
+
", updateTime="
+
updateTime
+
", createUser="
+
createUser
+
", updateUser="
+
updateUser
+
"}"
;
", fileId="
+
fileId
+
", fileData="
+
fileData
+
", createTime="
+
createTime
+
", updateTime="
+
updateTime
+
", createUser="
+
createUser
+
", updateUser="
+
updateUser
+
"}"
;
}
}
src/main/java/cn/stylefeng/guns/modular/system/entity/LoginLog.java
View file @
3496f212
...
...
@@ -25,7 +25,7 @@ public class LoginLog implements Serializable {
/**
* 主键
*/
@TableId
(
value
=
"LOGIN_LOG_ID"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"LOGIN_LOG_ID"
,
type
=
IdType
.
ID_WORKER
)
private
Long
loginLogId
;
/**
* 日志名称
...
...
src/main/java/cn/stylefeng/guns/modular/system/entity/Menu.java
View file @
3496f212
...
...
@@ -25,7 +25,7 @@ public class Menu implements Serializable {
/**
* 主键id
*/
@TableId
(
value
=
"MENU_ID"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"MENU_ID"
,
type
=
IdType
.
ID_WORKER
)
private
Long
menuId
;
/**
* 菜单编号
...
...
src/main/java/cn/stylefeng/guns/modular/system/entity/Notice.java
View file @
3496f212
...
...
@@ -25,7 +25,7 @@ public class Notice implements Serializable {
/**
* 主键
*/
@TableId
(
value
=
"NOTICE_ID"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"NOTICE_ID"
,
type
=
IdType
.
ID_WORKER
)
private
Long
noticeId
;
/**
* 标题
...
...
src/main/java/cn/stylefeng/guns/modular/system/entity/OperationLog.java
View file @
3496f212
...
...
@@ -25,7 +25,7 @@ public class OperationLog implements Serializable {
/**
* 主键
*/
@TableId
(
value
=
"OPERATION_LOG_ID"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"OPERATION_LOG_ID"
,
type
=
IdType
.
ID_WORKER
)
private
Long
operationLogId
;
/**
* 日志类型(字典)
...
...
src/main/java/cn/stylefeng/guns/modular/system/entity/Relation.java
View file @
3496f212
...
...
@@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.annotations.TableName;
import
java.io.Serializable
;
import
static
com
.
baomidou
.
mybatisplus
.
enums
.
IdType
.
ID_WORKER
;
/**
* <p>
* 角色和菜单关联表
...
...
@@ -22,7 +24,7 @@ public class Relation implements Serializable {
/**
* 主键
*/
@TableId
(
"RELATION_ID"
)
@TableId
(
value
=
"RELATION_ID"
,
type
=
ID_WORKER
)
private
Long
relationId
;
/**
* 菜单id
...
...
@@ -63,9 +65,9 @@ public class Relation implements Serializable {
@Override
public
String
toString
()
{
return
"Relation{"
+
", relationId="
+
relationId
+
", menuId="
+
menuId
+
", roleId="
+
roleId
+
"}"
;
", relationId="
+
relationId
+
", menuId="
+
menuId
+
", roleId="
+
roleId
+
"}"
;
}
}
src/main/java/cn/stylefeng/guns/modular/system/entity/Role.java
View file @
3496f212
...
...
@@ -25,7 +25,7 @@ public class Role implements Serializable {
/**
* 主键id
*/
@TableId
(
value
=
"ROLE_ID"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"ROLE_ID"
,
type
=
IdType
.
ID_WORKER
)
private
Long
roleId
;
/**
* 父角色id
...
...
src/main/java/cn/stylefeng/guns/modular/system/entity/User.java
View file @
3496f212
...
...
@@ -27,7 +27,7 @@ public class User implements Serializable {
/**
* 主键id
*/
@TableId
(
value
=
"USER_ID"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"USER_ID"
,
type
=
IdType
.
ID_WORKER
)
private
Long
userId
;
/**
* 头像
...
...
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