Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sentinel
Project
Project
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
曲欣亮
sentinel
Commits
90f4352e
Commit
90f4352e
authored
Nov 23, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改组权限
parent
36d396f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
AdminAuthServiceImpl.java
...olm/film/api/admin/service/impl/AdminAuthServiceImpl.java
+9
-1
No files found.
src/main/java/com/egolm/film/api/admin/service/impl/AdminAuthServiceImpl.java
View file @
90f4352e
...
...
@@ -14,6 +14,7 @@ import com.egolm.common.jdbc.Page;
import
com.egolm.film.api.admin.service.AdminAuthService
;
import
com.egolm.film.bean.Fc_admin
;
import
com.egolm.film.bean.Fc_admin_group
;
import
com.egolm.film.bean.Fc_admin_group_menu
;
import
com.egolm.film.config.WebMvcConfig
;
import
com.egolm.film.util.SqlWhere
;
...
...
@@ -90,9 +91,16 @@ public class AdminAuthServiceImpl implements AdminAuthService {
@Override
@Transactional
public
void
updateGroupAuth
(
Integer
group_id
,
Integer
[]
menu_id
)
{
public
void
updateGroupAuth
(
Integer
group_id
,
Integer
[]
ids
)
{
String
sql
=
"delete from fc_admin_group_menu where group_id = ?"
;
jdbcTemplate
.
executeUpdate
(
sql
,
group_id
);
List
<
Fc_admin_group_menu
>
agmList
=
new
ArrayList
<
Fc_admin_group_menu
>();
for
(
Integer
menu_id
:
ids
)
{
Fc_admin_group_menu
agm
=
new
Fc_admin_group_menu
();
agm
.
setGroup_id
(
group_id
);
agm
.
setMenu_id
(
menu_id
);
}
jdbcTemplate
.
batchSave
(
agmList
);
}
...
...
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