Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
0584fcd3
Commit
0584fcd3
authored
Jun 02, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户登录,数据库表,删除资源resource
parent
a283f243
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
800 additions
and
799 deletions
+800
-799
portal-manager/db/db.sql
portal-manager/db/db.sql
+3
-2
portal-manager/db/menu.sql
portal-manager/db/menu.sql
+2
-2
portal-manager/doc/政务一体化门户.docx
portal-manager/doc/政务一体化门户.docx
+0
-0
portal-manager/src/main/java/com/mortals/xhx/module/role/model/RoleEntity.java
...in/java/com/mortals/xhx/module/role/model/RoleEntity.java
+76
-76
portal-manager/src/main/java/com/mortals/xhx/module/role/model/RoleQuery.java
...ain/java/com/mortals/xhx/module/role/model/RoleQuery.java
+376
-376
portal-manager/src/main/resources/sqlmap/module/role/RoleMapper.xml
...ager/src/main/resources/sqlmap/module/role/RoleMapper.xml
+334
-334
portal-manager/src/test/java/com/mortals/httpclient/role/RoleController.http
...test/java/com/mortals/httpclient/role/RoleController.http
+9
-9
No files found.
portal-manager/db/db.sql
View file @
0584fcd3
...
@@ -35,7 +35,7 @@ CREATE TABLE mortals_xhx_role(
...
@@ -35,7 +35,7 @@ CREATE TABLE mortals_xhx_role(
`roleSort`
int
(
4
)
COMMENT
'角色排序字段'
,
`roleSort`
int
(
4
)
COMMENT
'角色排序字段'
,
`roleType`
tinyint
(
2
)
COMMENT
'角色类型(0.系统内置角色,1.默认系统角色,2.普通角色)'
,
`roleType`
tinyint
(
2
)
COMMENT
'角色类型(0.系统内置角色,1.默认系统角色,2.普通角色)'
,
`remark`
varchar
(
256
)
COMMENT
'备注'
,
`remark`
varchar
(
256
)
COMMENT
'备注'
,
`
roleType
`
tinyint
(
2
)
COMMENT
'角色状态(0.停用,1.启用)'
,
`
status
`
tinyint
(
2
)
COMMENT
'角色状态(0.停用,1.启用)'
,
`createTime`
datetime
COMMENT
'创建时间'
,
`createTime`
datetime
COMMENT
'创建时间'
,
`createUserId`
bigint
(
20
)
COMMENT
'创建用户'
,
`createUserId`
bigint
(
20
)
COMMENT
'创建用户'
,
`createUserName`
varchar
(
50
)
COMMENT
'创建用户名称'
,
`createUserName`
varchar
(
50
)
COMMENT
'创建用户名称'
,
...
@@ -216,4 +216,5 @@ INSERT INTO `mortals_xhx_role` VALUES (1, '管理员', '类似admin', 0, now(),
...
@@ -216,4 +216,5 @@ INSERT INTO `mortals_xhx_role` VALUES (1, '管理员', '类似admin', 0, now(),
-- ----------------------------
-- ----------------------------
INSERT
INTO
`mortals_xhx_task`
VALUES
(
2
,
'分表创建任务'
,
'tableIndexService'
,
0
,
'tableIndexService'
,
NULL
,
NULL
,
1
,
0
,
'00:30'
,
NULL
,
'192.168.1.106'
,
'2021-08-18 00:30:01'
,
0
,
'2021-08-12 11:07:23'
,
1
,
'系统管理员'
);
INSERT
INTO
`mortals_xhx_task`
VALUES
(
2
,
'分表创建任务'
,
'tableIndexService'
,
0
,
'tableIndexService'
,
NULL
,
NULL
,
1
,
0
,
'00:30'
,
NULL
,
'192.168.1.106'
,
'2021-08-18 00:30:01'
,
0
,
'2021-08-12 11:07:23'
,
1
,
'系统管理员'
);
INSERT
INTO
`mortals_xhx_user`
VALUES
(
1
,
'admin'
,
'43442676c74ae59f219c2d87fd6bad52'
,
NULL
,
'系统管理员'
,
'13808095770'
,
NULL
,
NULL
,
1
,
""
,
""
,
""
,
1
,
1
,
now
(),
1
,
'admin'
,
now
(),
'127.0.0.1'
);
INSERT
INTO
`mortals_xhx_user`
VALUES
(
1
,
'admin'
,
'43442676c74ae59f219c2d87fd6bad52'
,
NULL
,
'系统管理员'
,
'13808095770'
,
NULL
,
NULL
,
NULL
,
0
,
""
,
""
,
1
,
now
(),
1
,
'admin'
,
now
(),
'127.0.0.1'
);
\ No newline at end of file
portal-manager/db/menu.sql
View file @
0584fcd3
...
@@ -37,8 +37,8 @@ INSERT INTO `mortals_xhx_resource` VALUES (null, '角色信息-菜单管理-维
...
@@ -37,8 +37,8 @@ INSERT INTO `mortals_xhx_resource` VALUES (null, '角色信息-菜单管理-维
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'角色类型'
,
'Role'
,
'roleType'
,
'0'
,
'系统内置角色'
,
1
,
4
,
0
,
'roleType'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'角色类型'
,
'Role'
,
'roleType'
,
'0'
,
'系统内置角色'
,
1
,
4
,
0
,
'roleType'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'角色类型'
,
'Role'
,
'roleType'
,
'1'
,
'默认系统角色'
,
1
,
4
,
0
,
'roleType'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'角色类型'
,
'Role'
,
'roleType'
,
'1'
,
'默认系统角色'
,
1
,
4
,
0
,
'roleType'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'角色类型'
,
'Role'
,
'roleType'
,
'2'
,
'普通角色'
,
1
,
4
,
0
,
'roleType'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'角色类型'
,
'Role'
,
'roleType'
,
'2'
,
'普通角色'
,
1
,
4
,
0
,
'roleType'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'角色状态'
,
'Role'
,
'
roleType'
,
'0'
,
'停用'
,
1
,
4
,
0
,
'roleType
'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'角色状态'
,
'Role'
,
'
status'
,
'0'
,
'停用'
,
1
,
4
,
0
,
'status
'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'角色状态'
,
'Role'
,
'
roleType'
,
'1'
,
'启用'
,
1
,
4
,
0
,
'roleType
'
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
VALUES
(
null
,
'角色状态'
,
'Role'
,
'
status'
,
'1'
,
'启用'
,
1
,
4
,
0
,
'status
'
,
NULL
,
NULL
,
NULL
);
-- ----------------------------
-- ----------------------------
-- 角色用户关联菜单 SQL
-- 角色用户关联菜单 SQL
-- ----------------------------
-- ----------------------------
...
...
portal-manager/doc/政务一体化门户.docx
View file @
0584fcd3
No preview for this file type
portal-manager/src/main/java/com/mortals/xhx/module/role/model/RoleEntity.java
View file @
0584fcd3
...
@@ -7,142 +7,142 @@ import com.mortals.framework.annotation.Excel;
...
@@ -7,142 +7,142 @@ import com.mortals.framework.annotation.Excel;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.role.model.vo.RoleVo
;
import
com.mortals.xhx.module.role.model.vo.RoleVo
;
/**
/**
* 角色信息实体对象
* 角色信息实体对象
*
*
* @author zxfei
* @author zxfei
* @date 2022-06-02
* @date 2022-06-02
*/
*/
public
class
RoleEntity
extends
RoleVo
{
public
class
RoleEntity
extends
RoleVo
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
* 角色名称
* 角色名称
*/
*/
private
String
name
;
private
String
name
;
/**
/**
* 角色编码
* 角色编码
*/
*/
private
String
roleCode
;
private
String
roleCode
;
/**
/**
* 角色排序字段
* 角色排序字段
*/
*/
private
Integer
roleSort
;
private
Integer
roleSort
;
/**
/**
* 角色类型(0.系统内置角色,1.默认系统角色,2.普通角色)
* 角色类型(0.系统内置角色,1.默认系统角色,2.普通角色)
*/
*/
private
Integer
roleType
;
private
Integer
roleType
;
/**
/**
* 备注
* 备注
*/
*/
private
String
remark
;
private
String
remark
;
/**
/**
* 角色状态(0.停用,1.启用)
* 角色状态(0.停用,1.启用)
*/
*/
private
Integer
roleType
;
private
Integer
status
;
/**
/**
* 创建用户名称
* 创建用户名称
*/
*/
private
String
createUserName
;
private
String
createUserName
;
public
RoleEntity
(){}
public
RoleEntity
(){}
/**
/**
* 获取 角色名称
* 获取 角色名称
* @return String
* @return String
*/
*/
public
String
getName
(){
public
String
getName
(){
return
name
;
return
name
;
}
}
/**
/**
* 设置 角色名称
* 设置 角色名称
* @param name
* @param name
*/
*/
public
void
setName
(
String
name
){
public
void
setName
(
String
name
){
this
.
name
=
name
;
this
.
name
=
name
;
}
}
/**
/**
* 获取 角色编码
* 获取 角色编码
* @return String
* @return String
*/
*/
public
String
getRoleCode
(){
public
String
getRoleCode
(){
return
roleCode
;
return
roleCode
;
}
}
/**
/**
* 设置 角色编码
* 设置 角色编码
* @param roleCode
* @param roleCode
*/
*/
public
void
setRoleCode
(
String
roleCode
){
public
void
setRoleCode
(
String
roleCode
){
this
.
roleCode
=
roleCode
;
this
.
roleCode
=
roleCode
;
}
}
/**
/**
* 获取 角色排序字段
* 获取 角色排序字段
* @return Integer
* @return Integer
*/
*/
public
Integer
getRoleSort
(){
public
Integer
getRoleSort
(){
return
roleSort
;
return
roleSort
;
}
}
/**
/**
* 设置 角色排序字段
* 设置 角色排序字段
* @param roleSort
* @param roleSort
*/
*/
public
void
setRoleSort
(
Integer
roleSort
){
public
void
setRoleSort
(
Integer
roleSort
){
this
.
roleSort
=
roleSort
;
this
.
roleSort
=
roleSort
;
}
}
/**
/**
* 获取 角色类型(0.系统内置角色,1.默认系统角色,2.普通角色)
* 获取 角色类型(0.系统内置角色,1.默认系统角色,2.普通角色)
* @return Integer
* @return Integer
*/
*/
public
Integer
getRoleType
(){
public
Integer
getRoleType
(){
return
roleType
;
return
roleType
;
}
}
/**
/**
* 设置 角色类型(0.系统内置角色,1.默认系统角色,2.普通角色)
* 设置 角色类型(0.系统内置角色,1.默认系统角色,2.普通角色)
* @param roleType
* @param roleType
*/
*/
public
void
setRoleType
(
Integer
roleType
){
public
void
setRoleType
(
Integer
roleType
){
this
.
roleType
=
roleType
;
this
.
roleType
=
roleType
;
}
}
/**
/**
* 获取 备注
* 获取 备注
* @return String
* @return String
*/
*/
public
String
getRemark
(){
public
String
getRemark
(){
return
remark
;
return
remark
;
}
}
/**
/**
* 设置 备注
* 设置 备注
* @param remark
* @param remark
*/
*/
public
void
setRemark
(
String
remark
){
public
void
setRemark
(
String
remark
){
this
.
remark
=
remark
;
this
.
remark
=
remark
;
}
}
/**
/**
* 获取 角色状态(0.停用,1.启用)
* 获取 角色状态(0.停用,1.启用)
* @return Integer
* @return Integer
*/
*/
public
Integer
get
RoleType
(){
public
Integer
get
Status
(){
return
roleType
;
return
status
;
}
}
/**
/**
* 设置 角色状态(0.停用,1.启用)
* 设置 角色状态(0.停用,1.启用)
* @param roleType
* @param status
*/
*/
public
void
set
RoleType
(
Integer
roleType
){
public
void
set
Status
(
Integer
status
){
this
.
roleType
=
roleType
;
this
.
status
=
status
;
}
}
/**
/**
* 获取 创建用户名称
* 获取 创建用户名称
* @return String
* @return String
*/
*/
public
String
getCreateUserName
(){
public
String
getCreateUserName
(){
return
createUserName
;
return
createUserName
;
}
}
/**
/**
* 设置 创建用户名称
* 设置 创建用户名称
* @param createUserName
* @param createUserName
*/
*/
public
void
setCreateUserName
(
String
createUserName
){
public
void
setCreateUserName
(
String
createUserName
){
this
.
createUserName
=
createUserName
;
this
.
createUserName
=
createUserName
;
}
}
...
@@ -152,7 +152,7 @@ public class RoleEntity extends RoleVo {
...
@@ -152,7 +152,7 @@ public class RoleEntity extends RoleVo {
@Override
@Override
public
int
hashCode
()
{
public
int
hashCode
()
{
return
this
.
getId
().
hashCode
();
return
this
.
getId
().
hashCode
();
}
}
@Override
@Override
public
boolean
equals
(
Object
obj
)
{
public
boolean
equals
(
Object
obj
)
{
...
@@ -160,7 +160,7 @@ public class RoleEntity extends RoleVo {
...
@@ -160,7 +160,7 @@ public class RoleEntity extends RoleVo {
if
(
obj
instanceof
RoleEntity
)
{
if
(
obj
instanceof
RoleEntity
)
{
RoleEntity
tmp
=
(
RoleEntity
)
obj
;
RoleEntity
tmp
=
(
RoleEntity
)
obj
;
if
(
this
.
getId
()
==
tmp
.
getId
())
{
if
(
this
.
getId
()
==
tmp
.
getId
())
{
return
true
;
return
true
;
}
}
}
}
return
false
;
return
false
;
...
@@ -173,25 +173,25 @@ public class RoleEntity extends RoleVo {
...
@@ -173,25 +173,25 @@ public class RoleEntity extends RoleVo {
sb
.
append
(
",roleSort:"
).
append
(
getRoleSort
());
sb
.
append
(
",roleSort:"
).
append
(
getRoleSort
());
sb
.
append
(
",roleType:"
).
append
(
getRoleType
());
sb
.
append
(
",roleType:"
).
append
(
getRoleType
());
sb
.
append
(
",remark:"
).
append
(
getRemark
());
sb
.
append
(
",remark:"
).
append
(
getRemark
());
sb
.
append
(
",
roleType:"
).
append
(
getRoleType
());
sb
.
append
(
",
status:"
).
append
(
getStatus
());
sb
.
append
(
",createUserName:"
).
append
(
getCreateUserName
());
sb
.
append
(
",createUserName:"
).
append
(
getCreateUserName
());
return
sb
.
toString
();
return
sb
.
toString
();
}
}
public
void
initAttrValue
(){
public
void
initAttrValue
(){
this
.
name
=
""
;
this
.
name
=
""
;
this
.
roleCode
=
""
;
this
.
roleCode
=
""
;
this
.
roleSort
=
0
;
this
.
roleSort
=
0
;
this
.
roleType
=
2
;
this
.
roleType
=
2
;
this
.
remark
=
""
;
this
.
remark
=
""
;
this
.
roleType
=
0
;
this
.
status
=
0
;
this
.
createUserName
=
""
;
this
.
createUserName
=
""
;
}
}
}
}
\ No newline at end of file
portal-manager/src/main/java/com/mortals/xhx/module/role/model/RoleQuery.java
View file @
0584fcd3
This diff is collapsed.
Click to expand it.
portal-manager/src/main/resources/sqlmap/module/role/RoleMapper.xml
View file @
0584fcd3
This diff is collapsed.
Click to expand it.
portal-manager/src/test/java/com/mortals/httpclient/role/RoleController.http
View file @
0584fcd3
...
@@ -5,8 +5,8 @@ Authorization: {{authToken}}
...
@@ -5,8 +5,8 @@ Authorization: {{authToken}}
Content-Type: application/json
Content-Type: application/json
{
{
"page":1,
"page":1,
"size":10
"size":10
}
}
...
@@ -16,13 +16,13 @@ Authorization: {{authToken}}
...
@@ -16,13 +16,13 @@ Authorization: {{authToken}}
Content-Type: application/json
Content-Type: application/json
{
{
"name":"e9e4uu
",
"name":"9h8jlh
",
"roleCode":"tzulbs
",
"roleCode":"beliak
",
"roleSort":0,
"roleSort":0,
"roleType":2,
"roleType":2,
"remark":"4345a1
",
"remark":"66tnax
",
"roleType
":0,
"status
":0,
"createUserName":"78k9cx
"
"createUserName":"6qo3fj
"
}
}
> {%
> {%
...
...
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