Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-platform-auth
Commits
d5898337
Commit
d5898337
authored
Sep 03, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
菜单角色批量插入
parent
cc9aae29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
RoleApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/RoleApiServiceImpl.java
+4
-0
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/RoleApiServiceImpl.java
View file @
d5898337
...
...
@@ -112,11 +112,15 @@ public class RoleApiServiceImpl implements RoleApiService{
return
ServiceResponse
.
failure
(
menuIdResponse
.
getCode
(),
menuIdResponse
.
getMessage
());
}
List
<
MenuRoleDTO
>
list
=
new
ArrayList
<>(
menuIdArr
.
length
);
Date
now
=
new
Date
();
for
(
String
menuId
:
menuIdArr
)
{
MenuRoleDTO
menuRoleDTO
=
new
MenuRoleDTO
();
menuRoleDTO
.
setEnterpriseId
(
enterpriseId
);
menuRoleDTO
.
setRoleId
(
roleId
);
menuRoleDTO
.
setMenuId
(
Integer
.
parseInt
(
menuId
));
menuRoleDTO
.
setCreateTime
(
now
);
menuRoleDTO
.
setUpdateTime
(
now
);
menuRoleDTO
.
setStatus
(
1
);
list
.
add
(
menuRoleDTO
);
}
menuRoleService
.
insertForeach
(
list
);
...
...
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