Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
T
tcm-system
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TCM
tcm-system
Commits
9e37b133
Commit
9e37b133
authored
Jul 15, 2019
by
zjy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user/role/tright 7.15
parent
d67cd8f3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
PangdingManagementController.java
...eb/authority/controller/PangdingManagementController.java
+1
-0
AuthorityServiceImpl.java
...ding/web/authority/service/impl/AuthorityServiceImpl.java
+7
-0
RoleConstant.java
...in/java/com/pangding/web/authority/util/RoleConstant.java
+1
-3
No files found.
src/main/java/com/pangding/web/authority/controller/PangdingManagementController.java
View file @
9e37b133
...
@@ -260,6 +260,7 @@ public class PangdingManagementController {
...
@@ -260,6 +260,7 @@ public class PangdingManagementController {
public
ResponseResult
batchDelete
(
@RequestBody
BatchDeleteReqVo
reqVo
){
public
ResponseResult
batchDelete
(
@RequestBody
BatchDeleteReqVo
reqVo
){
CheckerHelper
.
newInstance
()
CheckerHelper
.
newInstance
()
.
notBlankCheck
(
"userIdList"
,
reqVo
.
getUserIdList
())
.
notBlankCheck
(
"userIdList"
,
reqVo
.
getUserIdList
())
.
notBlankCheck
(
"roleId"
,
reqVo
.
getRoleId
())
.
checkException
();
.
checkException
();
companyServiceImpl
.
batchDelete
(
reqVo
);
companyServiceImpl
.
batchDelete
(
reqVo
);
return
new
ResponseResult
();
return
new
ResponseResult
();
...
...
src/main/java/com/pangding/web/authority/service/impl/AuthorityServiceImpl.java
View file @
9e37b133
...
@@ -55,6 +55,13 @@ public class AuthorityServiceImpl implements AuthorityService {
...
@@ -55,6 +55,13 @@ public class AuthorityServiceImpl implements AuthorityService {
authorityVo
.
setId
(
StringHelper
.
getNewID
());
authorityVo
.
setId
(
StringHelper
.
getNewID
());
authorityDao
.
create
(
authorityVo
);
authorityDao
.
create
(
authorityVo
);
/*需要给胖丁默认角色绑定上该权限*/
RoleAuthorityVo
roleAuthorityVo
=
new
RoleAuthorityVo
();
roleAuthorityVo
.
setId
(
StringHelper
.
getNewID
());
roleAuthorityVo
.
setRoleId
(
RoleConstant
.
DEFAULT_ROLE_ID
);
roleAuthorityVo
.
setAuthorityId
(
authorityVo
.
getId
());
roleAuthorityDao
.
create
(
roleAuthorityVo
);
AuthorityListReqVo
reqVo
=
new
AuthorityListReqVo
();
AuthorityListReqVo
reqVo
=
new
AuthorityListReqVo
();
reqVo
.
setLevelOne
(
"levelOne"
);
reqVo
.
setLevelOne
(
"levelOne"
);
return
this
.
getListByLevel
(
reqVo
);
return
this
.
getListByLevel
(
reqVo
);
...
...
src/main/java/com/pangding/web/authority/util/RoleConstant.java
View file @
9e37b133
...
@@ -9,7 +9,5 @@ public class RoleConstant {
...
@@ -9,7 +9,5 @@ public class RoleConstant {
/**
/**
* 超级管理员角色id
* 超级管理员角色id
*/
*/
public
static
final
String
SUPER_ADMIN_ROLE_ID
=
"z001559267717678b813b7a85db4521f"
;
public
static
final
String
DEFAULT_ROLE_ID
=
"1"
;
public
static
final
String
ADMIN_ROLE_ID
=
"z0015604817387d5bcf3437fce751234"
;
}
}
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