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
48d36cc7
Commit
48d36cc7
authored
Apr 08, 2017
by
fsn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据库的结构
parent
e3ece4e6
Show whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
184 additions
and
211 deletions
+184
-211
sql/guns.sql
+29
-76
src/main/java/com/stylefeng/guns/common/constant/state/LogSucceed.java
+1
-1
src/main/java/com/stylefeng/guns/common/constant/state/LogType.java
+1
-1
src/main/java/com/stylefeng/guns/common/constant/state/MenuOpenStatus.java
+50
-0
src/main/java/com/stylefeng/guns/common/constant/state/MenuStatus.java
+2
-2
src/main/java/com/stylefeng/guns/persistence/dao/AttachMapper.java
+1
-1
src/main/java/com/stylefeng/guns/persistence/dao/DeptMapper.java
+1
-1
src/main/java/com/stylefeng/guns/persistence/dao/DictMapper.java
+1
-1
src/main/java/com/stylefeng/guns/persistence/dao/GenerateMapper.java
+1
-1
src/main/java/com/stylefeng/guns/persistence/dao/LoginLogMapper.java
+1
-1
src/main/java/com/stylefeng/guns/persistence/dao/MenuMapper.java
+1
-1
src/main/java/com/stylefeng/guns/persistence/dao/NoticeMapper.java
+1
-1
src/main/java/com/stylefeng/guns/persistence/dao/OperationLogMapper.java
+1
-1
src/main/java/com/stylefeng/guns/persistence/dao/ParameterMapper.java
+1
-1
src/main/java/com/stylefeng/guns/persistence/dao/RelationMapper.java
+1
-1
src/main/java/com/stylefeng/guns/persistence/dao/RoleExtMapper.java
+1
-1
src/main/java/com/stylefeng/guns/persistence/dao/RoleMapper.java
+1
-1
src/main/java/com/stylefeng/guns/persistence/dao/UserMapper.java
+1
-1
src/main/java/com/stylefeng/guns/persistence/dao/mapping/MenuMapper.xml
+0
-5
src/main/java/com/stylefeng/guns/persistence/model/Attach.java
+5
-5
src/main/java/com/stylefeng/guns/persistence/model/Dept.java
+4
-4
src/main/java/com/stylefeng/guns/persistence/model/Dict.java
+4
-4
src/main/java/com/stylefeng/guns/persistence/model/Generate.java
+4
-4
src/main/java/com/stylefeng/guns/persistence/model/LoginLog.java
+5
-5
src/main/java/com/stylefeng/guns/persistence/model/Menu.java
+34
-52
src/main/java/com/stylefeng/guns/persistence/model/Notice.java
+5
-5
src/main/java/com/stylefeng/guns/persistence/model/OperationLog.java
+5
-6
src/main/java/com/stylefeng/guns/persistence/model/Parameter.java
+4
-4
src/main/java/com/stylefeng/guns/persistence/model/Relation.java
+4
-4
src/main/java/com/stylefeng/guns/persistence/model/Role.java
+4
-4
src/main/java/com/stylefeng/guns/persistence/model/RoleExt.java
+4
-4
src/main/java/com/stylefeng/guns/persistence/model/User.java
+5
-11
src/main/java/project/generator/MpGenerator.java
+1
-1
No files found.
sql/guns.sql
View file @
48d36cc7
...
@@ -10,31 +10,12 @@ Target Server Type : MYSQL
...
@@ -10,31 +10,12 @@ Target Server Type : MYSQL
Target Server Version : 50621
Target Server Version : 50621
File Encoding : 65001
File Encoding : 65001
Date: 2017-04-0
7 00:13:44
Date: 2017-04-0
8 10:13:46
*/
*/
SET
FOREIGN_KEY_CHECKS
=
0
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- ----------------------------
-- Table structure for _attach
-- ----------------------------
DROP
TABLE
IF
EXISTS
`_attach`
;
CREATE
TABLE
`_attach`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`code`
varchar
(
255
)
DEFAULT
NULL
,
`name`
varchar
(
255
)
DEFAULT
NULL
,
`url`
text
,
`status`
int
(
11
)
DEFAULT
NULL
,
`creater`
int
(
11
)
DEFAULT
NULL
,
`createtime`
datetime
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
-- ----------------------------
-- Records of _attach
-- ----------------------------
-- ----------------------------
-- Table structure for _dept
-- Table structure for _dept
-- ----------------------------
-- ----------------------------
DROP
TABLE
IF
EXISTS
`_dept`
;
DROP
TABLE
IF
EXISTS
`_dept`
;
...
@@ -89,27 +70,6 @@ INSERT INTO `_dict` VALUES ('12', '902', '1', '11', '启用', null, '0');
...
@@ -89,27 +70,6 @@ INSERT INTO `_dict` VALUES ('12', '902', '1', '11', '启用', null, '0');
INSERT
INTO
`_dict`
VALUES
(
'13'
,
'902'
,
'2'
,
'11'
,
'禁用'
,
null
,
'0'
);
INSERT
INTO
`_dict`
VALUES
(
'13'
,
'902'
,
'2'
,
'11'
,
'禁用'
,
null
,
'0'
);
-- ----------------------------
-- ----------------------------
-- Table structure for _generate
-- ----------------------------
DROP
TABLE
IF
EXISTS
`_generate`
;
CREATE
TABLE
`_generate`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`name`
varchar
(
255
)
DEFAULT
NULL
,
`realpath`
varchar
(
255
)
DEFAULT
NULL
,
`packagename`
varchar
(
255
)
DEFAULT
NULL
,
`modelname`
varchar
(
255
)
DEFAULT
NULL
,
`tablename`
varchar
(
255
)
DEFAULT
NULL
,
`pkname`
varchar
(
255
)
DEFAULT
NULL
,
`tips`
varchar
(
255
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
2
DEFAULT
CHARSET
=
utf8
;
-- ----------------------------
-- Records of _generate
-- ----------------------------
INSERT
INTO
`_generate`
VALUES
(
'1'
,
'测试'
,
'E:
\\
Workspaces
\\
blade
\\
SpringBlade'
,
'com.smallchill.gen'
,
'Notice'
,
'_notice'
,
'id'
,
null
);
-- ----------------------------
-- Table structure for _login_log
-- Table structure for _login_log
-- ----------------------------
-- ----------------------------
DROP
TABLE
IF
EXISTS
`_login_log`
;
DROP
TABLE
IF
EXISTS
`_login_log`
;
...
@@ -153,45 +113,40 @@ DROP TABLE IF EXISTS `_menu`;
...
@@ -153,45 +113,40 @@ DROP TABLE IF EXISTS `_menu`;
CREATE
TABLE
`_menu`
(
CREATE
TABLE
`_menu`
(
`id`
int
(
65
)
NOT
NULL
AUTO_INCREMENT
,
`id`
int
(
65
)
NOT
NULL
AUTO_INCREMENT
,
`code`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'菜单编号'
,
`code`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'菜单编号'
,
`pcode`
varchar
(
255
)
DEFAULT
NULL
,
`pcode`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'菜单父编号'
,
`alias`
varchar
(
255
)
DEFAULT
NULL
,
`name`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'菜单名称'
,
`name`
varchar
(
255
)
DEFAULT
NULL
,
`icon`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'菜单图标'
,
`icon`
varchar
(
255
)
DEFAULT
NULL
,
`url`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'url地址'
,
`url`
varchar
(
255
)
DEFAULT
NULL
,
`num`
int
(
65
)
DEFAULT
NULL
COMMENT
'菜单排序号'
,
`num`
int
(
65
)
DEFAULT
NULL
,
`levels`
int
(
65
)
DEFAULT
NULL
COMMENT
'菜单层级'
,
`levels`
int
(
65
)
DEFAULT
NULL
,
`tips`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'备注'
,
`source`
text
,
`status`
int
(
65
)
DEFAULT
NULL
COMMENT
'菜单状态 : 1:启用 0:不启用'
,
`path`
varchar
(
255
)
DEFAULT
NULL
,
`isopen`
int
(
11
)
DEFAULT
NULL
COMMENT
'是否打开: 1:打开 0:不打开'
,
`tips`
varchar
(
255
)
DEFAULT
NULL
,
`status`
int
(
65
)
DEFAULT
NULL
,
`isopen`
varchar
(
255
)
DEFAULT
NULL
,
`istemplate`
varchar
(
255
)
DEFAULT
NULL
,
`version`
int
(
11
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
129
DEFAULT
CHARSET
=
utf8
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
129
DEFAULT
CHARSET
=
utf8
;
-- ----------------------------
-- ----------------------------
-- Records of _menu
-- Records of _menu
-- ----------------------------
-- ----------------------------
INSERT
INTO
`_menu`
VALUES
(
'105'
,
'system'
,
'0'
,
null
,
'系统管理'
,
'fa-user'
,
''
,
'2'
,
'2'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'105'
,
'system'
,
'0'
,
'系统管理'
,
'fa-user'
,
''
,
'2'
,
'2'
,
null
,
'1'
,
'1'
);
INSERT
INTO
`_menu`
VALUES
(
'106'
,
'mgr'
,
'system'
,
null
,
'用户管理'
,
null
,
'/mgr'
,
'1'
,
'2'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'106'
,
'mgr'
,
'system'
,
'用户管理'
,
null
,
'/mgr'
,
'1'
,
'2'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'107'
,
'mgr_add'
,
'mgr'
,
null
,
'添加用户'
,
null
,
'/mgr/add'
,
'1'
,
'3'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'107'
,
'mgr_add'
,
'mgr'
,
'添加用户'
,
null
,
'/mgr/add'
,
'1'
,
'3'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'108'
,
'mgr_edit'
,
'mgr'
,
null
,
'修改用户'
,
null
,
'/mgr/edit'
,
'1'
,
'3'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'108'
,
'mgr_edit'
,
'mgr'
,
'修改用户'
,
null
,
'/mgr/edit'
,
'1'
,
'3'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'109'
,
'mgr_delete'
,
'mgr'
,
null
,
'删除用户'
,
null
,
'/mgr/delete'
,
'1'
,
'3'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'109'
,
'mgr_delete'
,
'mgr'
,
'删除用户'
,
null
,
'/mgr/delete'
,
'1'
,
'3'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'110'
,
'mgr_reset'
,
'mgr'
,
null
,
'重置密码'
,
null
,
'/mgr/reset'
,
'1'
,
'3'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'110'
,
'mgr_reset'
,
'mgr'
,
'重置密码'
,
null
,
'/mgr/reset'
,
'1'
,
'3'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'111'
,
'mgr_freeze'
,
'mgr'
,
null
,
'冻结用户'
,
null
,
'/mgr/freeze'
,
'1'
,
'3'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'111'
,
'mgr_freeze'
,
'mgr'
,
'冻结用户'
,
null
,
'/mgr/freeze'
,
'1'
,
'3'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'112'
,
'mgr_unfreeze'
,
'mgr'
,
null
,
'解除冻结用户'
,
null
,
'/mgr/unfreeze'
,
'1'
,
'3'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'112'
,
'mgr_unfreeze'
,
'mgr'
,
'解除冻结用户'
,
null
,
'/mgr/unfreeze'
,
'1'
,
'3'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'113'
,
'mgr_setRole'
,
'mgr'
,
null
,
'分配角色'
,
null
,
'/mgr/setRole'
,
'1'
,
'3'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'113'
,
'mgr_setRole'
,
'mgr'
,
'分配角色'
,
null
,
'/mgr/setRole'
,
'1'
,
'3'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'114'
,
'role'
,
'system'
,
null
,
'角色管理'
,
null
,
'/role'
,
'1'
,
'2'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'114'
,
'role'
,
'system'
,
'角色管理'
,
null
,
'/role'
,
'1'
,
'2'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'115'
,
'role_add'
,
'role'
,
null
,
'添加角色'
,
null
,
'/role/add'
,
'1'
,
'3'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'115'
,
'role_add'
,
'role'
,
'添加角色'
,
null
,
'/role/add'
,
'1'
,
'3'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'116'
,
'role_edit'
,
'role'
,
null
,
'修改角色'
,
null
,
'/role/edit'
,
'1'
,
'3'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'116'
,
'role_edit'
,
'role'
,
'修改角色'
,
null
,
'/role/edit'
,
'1'
,
'3'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'117'
,
'role_remove'
,
'role'
,
null
,
'删除角色'
,
null
,
'/role/remove'
,
'1'
,
'3'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'117'
,
'role_remove'
,
'role'
,
'删除角色'
,
null
,
'/role/remove'
,
'1'
,
'3'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'118'
,
'role_setAuthority'
,
'role'
,
null
,
'配置权限'
,
null
,
'/role/setAuthority'
,
'1'
,
'3'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'118'
,
'role_setAuthority'
,
'role'
,
'配置权限'
,
null
,
'/role/setAuthority'
,
'1'
,
'3'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'119'
,
'menu'
,
'system'
,
null
,
'菜单管理'
,
null
,
'/menu'
,
'1'
,
'2'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'119'
,
'menu'
,
'system'
,
'菜单管理'
,
null
,
'/menu'
,
'1'
,
'2'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'120'
,
'menu_add'
,
'menu'
,
null
,
'添加菜单'
,
null
,
'/menu/add'
,
'1'
,
'3'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'120'
,
'menu_add'
,
'menu'
,
'添加菜单'
,
null
,
'/menu/add'
,
'1'
,
'3'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'121'
,
'menu_edit'
,
'menu'
,
null
,
'修改菜单'
,
null
,
'/menu/edit'
,
'1'
,
'3'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'121'
,
'menu_edit'
,
'menu'
,
'修改菜单'
,
null
,
'/menu/edit'
,
'1'
,
'3'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'122'
,
'menu_remove'
,
'menu'
,
null
,
'删除菜单'
,
null
,
'/menu/remove'
,
'1'
,
'3'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'122'
,
'menu_remove'
,
'menu'
,
'删除菜单'
,
null
,
'/menu/remove'
,
'1'
,
'3'
,
null
,
'1'
,
'0'
);
INSERT
INTO
`_menu`
VALUES
(
'128'
,
'log'
,
'system'
,
null
,
'日志管理'
,
null
,
'/log'
,
'1'
,
'1'
,
null
,
null
,
null
,
'1'
,
null
,
null
,
null
);
INSERT
INTO
`_menu`
VALUES
(
'128'
,
'log'
,
'system'
,
'日志管理'
,
null
,
'/log'
,
'1'
,
'1'
,
null
,
'1'
,
'0'
);
-- ----------------------------
-- ----------------------------
-- Table structure for _notice
-- Table structure for _notice
...
@@ -214,8 +169,6 @@ CREATE TABLE `_notice` (
...
@@ -214,8 +169,6 @@ CREATE TABLE `_notice` (
-- Records of _notice
-- Records of _notice
-- ----------------------------
-- ----------------------------
INSERT
INTO
`_notice`
VALUES
(
'6'
,
'通知1'
,
'10'
,
'通知111'
,
'2017-01-16 00:00:00'
,
'2017-01-11 08:53:20'
,
'1'
,
null
,
'3'
);
INSERT
INTO
`_notice`
VALUES
(
'6'
,
'通知1'
,
'10'
,
'通知111'
,
'2017-01-16 00:00:00'
,
'2017-01-11 08:53:20'
,
'1'
,
null
,
'3'
);
INSERT
INTO
`_notice`
VALUES
(
'7'
,
'通知22222'
,
'1'
,
'123123123'
,
'2017-02-02 00:00:00'
,
'2017-01-12 16:22:10'
,
'1'
,
null
,
'1'
);
INSERT
INTO
`_notice`
VALUES
(
'8'
,
'123123'
,
'10'
,
'123123'
,
'2017-02-07 00:00:00'
,
'2017-02-20 12:38:46'
,
'1'
,
null
,
null
);
-- ----------------------------
-- ----------------------------
-- Table structure for _operation_log
-- Table structure for _operation_log
...
...
src/main/java/com/stylefeng/guns/common/constant/state/LogSucceed.java
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
common
.
constant
.
state
;
package
com
.
stylefeng
.
guns
.
common
.
constant
.
state
;
/**
/**
*
用户的状态
*
业务是否成功的日志记录
*
*
* @author fengshuonan
* @author fengshuonan
* @Date 2017年1月22日 下午12:14:59
* @Date 2017年1月22日 下午12:14:59
...
...
src/main/java/com/stylefeng/guns/common/constant/state/LogType.java
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
common
.
constant
.
state
;
package
com
.
stylefeng
.
guns
.
common
.
constant
.
state
;
/**
/**
*
用户的状态
*
日志类型
*
*
* @author fengshuonan
* @author fengshuonan
* @Date 2017年1月22日 下午12:14:59
* @Date 2017年1月22日 下午12:14:59
...
...
src/main/java/com/stylefeng/guns/common/constant/state/MenuOpenStatus.java
0 → 100644
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
common
.
constant
.
state
;
/**
* 菜单是否打开的状态
*
* @author fengshuonan
* @Date 2017年4月8日10:12:15
*/
public
enum
MenuOpenStatus
{
OPEN
(
1
,
"打开"
),
CLOSE
(
0
,
"关闭"
);
int
code
;
String
message
;
MenuOpenStatus
(
int
code
,
String
message
)
{
this
.
code
=
code
;
this
.
message
=
message
;
}
public
int
getCode
()
{
return
code
;
}
public
void
setCode
(
int
code
)
{
this
.
code
=
code
;
}
public
String
getMessage
()
{
return
message
;
}
public
void
setMessage
(
String
message
)
{
this
.
message
=
message
;
}
public
static
String
valueOf
(
Integer
status
)
{
if
(
status
==
null
)
{
return
""
;
}
else
{
for
(
MenuOpenStatus
s
:
MenuOpenStatus
.
values
())
{
if
(
s
.
getCode
()
==
status
)
{
return
s
.
getMessage
();
}
}
return
""
;
}
}
}
src/main/java/com/stylefeng/guns/common/constant/state/MenuStatus.java
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
common
.
constant
.
state
;
package
com
.
stylefeng
.
guns
.
common
.
constant
.
state
;
/**
/**
*
用户
的状态
*
菜单
的状态
*
*
* @author fengshuonan
* @author fengshuonan
* @Date 2017年1月22日 下午12:14:59
* @Date 2017年1月22日 下午12:14:59
...
@@ -9,7 +9,7 @@ package com.stylefeng.guns.common.constant.state;
...
@@ -9,7 +9,7 @@ package com.stylefeng.guns.common.constant.state;
public
enum
MenuStatus
{
public
enum
MenuStatus
{
ENABLE
(
1
,
"启用"
),
ENABLE
(
1
,
"启用"
),
DISABLE
(
2
,
"禁用"
);
DISABLE
(
0
,
"禁用"
);
int
code
;
int
code
;
String
message
;
String
message
;
...
...
src/main/java/com/stylefeng/guns/persistence/dao/AttachMapper.java
View file @
48d36cc7
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
public
interface
AttachMapper
extends
BaseMapper
<
Attach
>
{
public
interface
AttachMapper
extends
BaseMapper
<
Attach
>
{
...
...
src/main/java/com/stylefeng/guns/persistence/dao/DeptMapper.java
View file @
48d36cc7
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
public
interface
DeptMapper
extends
BaseMapper
<
Dept
>
{
public
interface
DeptMapper
extends
BaseMapper
<
Dept
>
{
...
...
src/main/java/com/stylefeng/guns/persistence/dao/DictMapper.java
View file @
48d36cc7
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
public
interface
DictMapper
extends
BaseMapper
<
Dict
>
{
public
interface
DictMapper
extends
BaseMapper
<
Dict
>
{
...
...
src/main/java/com/stylefeng/guns/persistence/dao/GenerateMapper.java
View file @
48d36cc7
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
public
interface
GenerateMapper
extends
BaseMapper
<
Generate
>
{
public
interface
GenerateMapper
extends
BaseMapper
<
Generate
>
{
...
...
src/main/java/com/stylefeng/guns/persistence/dao/LoginLogMapper.java
View file @
48d36cc7
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
public
interface
LoginLogMapper
extends
BaseMapper
<
LoginLog
>
{
public
interface
LoginLogMapper
extends
BaseMapper
<
LoginLog
>
{
...
...
src/main/java/com/stylefeng/guns/persistence/dao/MenuMapper.java
View file @
48d36cc7
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
public
interface
MenuMapper
extends
BaseMapper
<
Menu
>
{
public
interface
MenuMapper
extends
BaseMapper
<
Menu
>
{
...
...
src/main/java/com/stylefeng/guns/persistence/dao/NoticeMapper.java
View file @
48d36cc7
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
public
interface
NoticeMapper
extends
BaseMapper
<
Notice
>
{
public
interface
NoticeMapper
extends
BaseMapper
<
Notice
>
{
...
...
src/main/java/com/stylefeng/guns/persistence/dao/OperationLogMapper.java
View file @
48d36cc7
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
public
interface
OperationLogMapper
extends
BaseMapper
<
OperationLog
>
{
public
interface
OperationLogMapper
extends
BaseMapper
<
OperationLog
>
{
...
...
src/main/java/com/stylefeng/guns/persistence/dao/ParameterMapper.java
View file @
48d36cc7
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
public
interface
ParameterMapper
extends
BaseMapper
<
Parameter
>
{
public
interface
ParameterMapper
extends
BaseMapper
<
Parameter
>
{
...
...
src/main/java/com/stylefeng/guns/persistence/dao/RelationMapper.java
View file @
48d36cc7
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
public
interface
RelationMapper
extends
BaseMapper
<
Relation
>
{
public
interface
RelationMapper
extends
BaseMapper
<
Relation
>
{
...
...
src/main/java/com/stylefeng/guns/persistence/dao/RoleExtMapper.java
View file @
48d36cc7
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
public
interface
RoleExtMapper
extends
BaseMapper
<
RoleExt
>
{
public
interface
RoleExtMapper
extends
BaseMapper
<
RoleExt
>
{
...
...
src/main/java/com/stylefeng/guns/persistence/dao/RoleMapper.java
View file @
48d36cc7
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
public
interface
RoleMapper
extends
BaseMapper
<
Role
>
{
public
interface
RoleMapper
extends
BaseMapper
<
Role
>
{
...
...
src/main/java/com/stylefeng/guns/persistence/dao/UserMapper.java
View file @
48d36cc7
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
public
interface
UserMapper
extends
BaseMapper
<
User
>
{
public
interface
UserMapper
extends
BaseMapper
<
User
>
{
...
...
src/main/java/com/stylefeng/guns/persistence/dao/mapping/MenuMapper.xml
View file @
48d36cc7
...
@@ -7,19 +7,14 @@
...
@@ -7,19 +7,14 @@
<id
column=
"id"
property=
"id"
/>
<id
column=
"id"
property=
"id"
/>
<result
column=
"code"
property=
"code"
/>
<result
column=
"code"
property=
"code"
/>
<result
column=
"pcode"
property=
"pcode"
/>
<result
column=
"pcode"
property=
"pcode"
/>
<result
column=
"alias"
property=
"alias"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"icon"
property=
"icon"
/>
<result
column=
"icon"
property=
"icon"
/>
<result
column=
"url"
property=
"url"
/>
<result
column=
"url"
property=
"url"
/>
<result
column=
"num"
property=
"num"
/>
<result
column=
"num"
property=
"num"
/>
<result
column=
"levels"
property=
"levels"
/>
<result
column=
"levels"
property=
"levels"
/>
<result
column=
"source"
property=
"source"
/>
<result
column=
"path"
property=
"path"
/>
<result
column=
"tips"
property=
"tips"
/>
<result
column=
"tips"
property=
"tips"
/>
<result
column=
"status"
property=
"status"
/>
<result
column=
"status"
property=
"status"
/>
<result
column=
"isopen"
property=
"isopen"
/>
<result
column=
"isopen"
property=
"isopen"
/>
<result
column=
"istemplate"
property=
"istemplate"
/>
<result
column=
"version"
property=
"version"
/>
</resultMap>
</resultMap>
</mapper>
</mapper>
src/main/java/com/stylefeng/guns/persistence/model/Attach.java
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
import
com.baomidou.mybatisplus.
activerecord.Model
;
import
com.baomidou.mybatisplus.
enums.IdType
;
import
java.util.Date
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.annotations.TableId
;
/**
/**
* <p>
* <p>
...
@@ -13,14 +13,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
...
@@ -13,14 +13,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
@TableName
(
"_attach"
)
@TableName
(
"_attach"
)
public
class
Attach
extends
Model
<
Attach
>
{
public
class
Attach
extends
Model
<
Attach
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@TableId
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
private
String
code
;
private
String
code
;
private
String
name
;
private
String
name
;
...
...
src/main/java/com/stylefeng/guns/persistence/model/Dept.java
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.annotations.TableId
;
/**
/**
* <p>
* <p>
...
@@ -12,14 +12,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
...
@@ -12,14 +12,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
@TableName
(
"_dept"
)
@TableName
(
"_dept"
)
public
class
Dept
extends
Model
<
Dept
>
{
public
class
Dept
extends
Model
<
Dept
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@TableId
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
private
Integer
num
;
private
Integer
num
;
private
Integer
pid
;
private
Integer
pid
;
...
...
src/main/java/com/stylefeng/guns/persistence/model/Dict.java
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.annotations.TableId
;
/**
/**
* <p>
* <p>
...
@@ -12,14 +12,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
...
@@ -12,14 +12,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
@TableName
(
"_dict"
)
@TableName
(
"_dict"
)
public
class
Dict
extends
Model
<
Dict
>
{
public
class
Dict
extends
Model
<
Dict
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@TableId
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
private
String
code
;
private
String
code
;
private
Integer
num
;
private
Integer
num
;
...
...
src/main/java/com/stylefeng/guns/persistence/model/Generate.java
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.annotations.TableId
;
/**
/**
* <p>
* <p>
...
@@ -12,14 +12,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
...
@@ -12,14 +12,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
@TableName
(
"_generate"
)
@TableName
(
"_generate"
)
public
class
Generate
extends
Model
<
Generate
>
{
public
class
Generate
extends
Model
<
Generate
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@TableId
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
private
String
name
;
private
String
name
;
private
String
realpath
;
private
String
realpath
;
...
...
src/main/java/com/stylefeng/guns/persistence/model/LoginLog.java
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
import
com.baomidou.mybatisplus.
activerecord.Model
;
import
com.baomidou.mybatisplus.
enums.IdType
;
import
java.util.Date
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.annotations.TableId
;
/**
/**
* <p>
* <p>
...
@@ -13,14 +13,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
...
@@ -13,14 +13,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
@TableName
(
"_login_log"
)
@TableName
(
"_login_log"
)
public
class
LoginLog
extends
Model
<
LoginLog
>
{
public
class
LoginLog
extends
Model
<
LoginLog
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@TableId
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
private
String
logname
;
private
String
logname
;
private
Integer
userid
;
private
Integer
userid
;
...
...
src/main/java/com/stylefeng/guns/persistence/model/Menu.java
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.annotations.TableId
;
/**
/**
* <p>
* <p>
...
@@ -12,33 +12,55 @@ import com.baomidou.mybatisplus.annotations.TableId;
...
@@ -12,33 +12,55 @@ import com.baomidou.mybatisplus.annotations.TableId;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
@TableName
(
"_menu"
)
@TableName
(
"_menu"
)
public
class
Menu
extends
Model
<
Menu
>
{
public
class
Menu
extends
Model
<
Menu
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@TableId
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
/**
/**
* 菜单编号
* 菜单编号
*/
*/
private
String
code
;
private
String
code
;
/**
* 菜单父编号
*/
private
String
pcode
;
private
String
pcode
;
private
String
alias
;
/**
* 菜单名称
*/
private
String
name
;
private
String
name
;
/**
* 菜单图标
*/
private
String
icon
;
private
String
icon
;
/**
* url地址
*/
private
String
url
;
private
String
url
;
/**
* 菜单排序号
*/
private
Integer
num
;
private
Integer
num
;
/**
* 菜单层级
*/
private
Integer
levels
;
private
Integer
levels
;
private
String
source
;
/**
private
String
path
;
* 备注
*/
private
String
tips
;
private
String
tips
;
/**
* 菜单状态 : 1:启用 0:不启用
*/
private
Integer
status
;
private
Integer
status
;
private
String
isopen
;
/**
private
String
istemplate
;
* 是否打开: 1:打开 0:不打开
private
Integer
version
;
*/
private
Integer
isopen
;
public
Integer
getId
()
{
public
Integer
getId
()
{
...
@@ -65,14 +87,6 @@ public class Menu extends Model<Menu> {
...
@@ -65,14 +87,6 @@ public class Menu extends Model<Menu> {
this
.
pcode
=
pcode
;
this
.
pcode
=
pcode
;
}
}
public
String
getAlias
()
{
return
alias
;
}
public
void
setAlias
(
String
alias
)
{
this
.
alias
=
alias
;
}
public
String
getName
()
{
public
String
getName
()
{
return
name
;
return
name
;
}
}
...
@@ -113,22 +127,6 @@ public class Menu extends Model<Menu> {
...
@@ -113,22 +127,6 @@ public class Menu extends Model<Menu> {
this
.
levels
=
levels
;
this
.
levels
=
levels
;
}
}
public
String
getSource
()
{
return
source
;
}
public
void
setSource
(
String
source
)
{
this
.
source
=
source
;
}
public
String
getPath
()
{
return
path
;
}
public
void
setPath
(
String
path
)
{
this
.
path
=
path
;
}
public
String
getTips
()
{
public
String
getTips
()
{
return
tips
;
return
tips
;
}
}
...
@@ -145,30 +143,14 @@ public class Menu extends Model<Menu> {
...
@@ -145,30 +143,14 @@ public class Menu extends Model<Menu> {
this
.
status
=
status
;
this
.
status
=
status
;
}
}
public
String
getIsopen
()
{
public
Integer
getIsopen
()
{
return
isopen
;
return
isopen
;
}
}
public
void
setIsopen
(
String
isopen
)
{
public
void
setIsopen
(
Integer
isopen
)
{
this
.
isopen
=
isopen
;
this
.
isopen
=
isopen
;
}
}
public
String
getIstemplate
()
{
return
istemplate
;
}
public
void
setIstemplate
(
String
istemplate
)
{
this
.
istemplate
=
istemplate
;
}
public
Integer
getVersion
()
{
return
version
;
}
public
void
setVersion
(
Integer
version
)
{
this
.
version
=
version
;
}
@Override
@Override
protected
Serializable
pkVal
()
{
protected
Serializable
pkVal
()
{
return
this
.
id
;
return
this
.
id
;
...
...
src/main/java/com/stylefeng/guns/persistence/model/Notice.java
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
import
com.baomidou.mybatisplus.
activerecord.Model
;
import
com.baomidou.mybatisplus.
enums.IdType
;
import
java.util.Date
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.annotations.TableId
;
/**
/**
* <p>
* <p>
...
@@ -13,7 +13,7 @@ import com.baomidou.mybatisplus.annotations.TableId;
...
@@ -13,7 +13,7 @@ import com.baomidou.mybatisplus.annotations.TableId;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
@TableName
(
"_notice"
)
@TableName
(
"_notice"
)
public
class
Notice
extends
Model
<
Notice
>
{
public
class
Notice
extends
Model
<
Notice
>
{
...
@@ -23,7 +23,7 @@ public class Notice extends Model<Notice> {
...
@@ -23,7 +23,7 @@ public class Notice extends Model<Notice> {
/**
/**
* 序列
* 序列
*/
*/
@TableId
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
/**
/**
* 标题
* 标题
...
...
src/main/java/com/stylefeng/guns/persistence/model/OperationLog.java
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
/**
* <p>
* <p>
...
@@ -14,14 +13,14 @@ import java.util.Date;
...
@@ -14,14 +13,14 @@ import java.util.Date;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
@TableName
(
"_operation_log"
)
@TableName
(
"_operation_log"
)
public
class
OperationLog
extends
Model
<
OperationLog
>
{
public
class
OperationLog
extends
Model
<
OperationLog
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@TableId
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
private
String
logtype
;
private
String
logtype
;
private
String
logname
;
private
String
logname
;
...
...
src/main/java/com/stylefeng/guns/persistence/model/Parameter.java
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.annotations.TableId
;
/**
/**
* <p>
* <p>
...
@@ -12,14 +12,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
...
@@ -12,14 +12,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
@TableName
(
"_parameter"
)
@TableName
(
"_parameter"
)
public
class
Parameter
extends
Model
<
Parameter
>
{
public
class
Parameter
extends
Model
<
Parameter
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@TableId
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
private
String
code
;
private
String
code
;
private
Integer
num
;
private
Integer
num
;
...
...
src/main/java/com/stylefeng/guns/persistence/model/Relation.java
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.annotations.TableId
;
/**
/**
* <p>
* <p>
...
@@ -12,14 +12,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
...
@@ -12,14 +12,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
@TableName
(
"_relation"
)
@TableName
(
"_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
;
@TableId
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
private
Integer
menuid
;
private
Integer
menuid
;
private
Integer
roleid
;
private
Integer
roleid
;
...
...
src/main/java/com/stylefeng/guns/persistence/model/Role.java
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.annotations.TableId
;
/**
/**
* <p>
* <p>
...
@@ -12,14 +12,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
...
@@ -12,14 +12,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
@TableName
(
"_role"
)
@TableName
(
"_role"
)
public
class
Role
extends
Model
<
Role
>
{
public
class
Role
extends
Model
<
Role
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@TableId
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
private
Integer
num
;
private
Integer
num
;
private
Integer
pid
;
private
Integer
pid
;
...
...
src/main/java/com/stylefeng/guns/persistence/model/RoleExt.java
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.annotations.TableId
;
/**
/**
* <p>
* <p>
...
@@ -12,14 +12,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
...
@@ -12,14 +12,14 @@ import com.baomidou.mybatisplus.annotations.TableId;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
@TableName
(
"_role_ext"
)
@TableName
(
"_role_ext"
)
public
class
RoleExt
extends
Model
<
RoleExt
>
{
public
class
RoleExt
extends
Model
<
RoleExt
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@TableId
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
private
String
userid
;
private
String
userid
;
private
String
rolein
;
private
String
rolein
;
...
...
src/main/java/com/stylefeng/guns/persistence/model/User.java
View file @
48d36cc7
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
package
com
.
stylefeng
.
guns
.
persistence
.
model
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
/**
* <p>
* <p>
...
@@ -15,21 +13,19 @@ import java.util.Date;
...
@@ -15,21 +13,19 @@ import java.util.Date;
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-0
3-30
* @since 2017-0
4-08
*/
*/
@TableName
(
"_user"
)
@TableName
(
"_user"
)
public
class
User
extends
Model
<
User
>
{
public
class
User
extends
Model
<
User
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@TableId
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
private
String
account
;
private
String
account
;
private
String
password
;
private
String
password
;
private
String
salt
;
private
String
salt
;
private
String
name
;
private
String
name
;
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
birthday
;
private
Date
birthday
;
private
Integer
sex
;
private
Integer
sex
;
private
String
email
;
private
String
email
;
...
@@ -37,8 +33,6 @@ public class User extends Model<User> {
...
@@ -37,8 +33,6 @@ public class User extends Model<User> {
private
String
roleid
;
private
String
roleid
;
private
Integer
deptid
;
private
Integer
deptid
;
private
Integer
status
;
private
Integer
status
;
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
createtime
;
private
Date
createtime
;
private
Integer
version
;
private
Integer
version
;
...
...
src/main/java/project/generator/MpGenerator.java
View file @
48d36cc7
...
@@ -33,7 +33,7 @@ public class MpGenerator {
...
@@ -33,7 +33,7 @@ public class MpGenerator {
// 全局配置
// 全局配置
GlobalConfig
gc
=
new
GlobalConfig
();
GlobalConfig
gc
=
new
GlobalConfig
();
gc
.
setOutputDir
(
"D:\\ideaSpace\\guns\\src\\main\\java"
);
//这里写你自己的java目录
gc
.
setOutputDir
(
"D:\\ideaSpace\\guns\\src\\main\\java"
);
//这里写你自己的java目录
gc
.
setFileOverride
(
true
);
gc
.
setFileOverride
(
true
);
//是否覆盖
gc
.
setActiveRecord
(
true
);
gc
.
setActiveRecord
(
true
);
gc
.
setEnableCache
(
false
);
// XML 二级缓存
gc
.
setEnableCache
(
false
);
// XML 二级缓存
gc
.
setBaseResultMap
(
true
);
// XML ResultMap
gc
.
setBaseResultMap
(
true
);
// XML ResultMap
...
...
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