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
908ef506
Commit
908ef506
authored
Dec 28, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
8d8e454b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
AdminAuthService.java
...ain/java/com/egolm/film/api/service/AdminAuthService.java
+2
-0
AdminAuthServiceImpl.java
...com/egolm/film/api/service/impl/AdminAuthServiceImpl.java
+7
-0
AdminAuthController.java
...ava/com/egolm/film/api/web/admin/AdminAuthController.java
+2
-1
No files found.
src/main/java/com/egolm/film/api/service/AdminAuthService.java
View file @
908ef506
...
...
@@ -25,6 +25,8 @@ public interface AdminAuthService {
List
<
Map
<
String
,
Object
>>
queryGroupMenuList
(
Integer
group_id
);
List
<
Integer
>
queryGroupFilmtypeList
(
Integer
group_id
);
List
<
Integer
>
queryGroupEnrolltypeList
(
Integer
group_id
);
void
updateGroupAuth
(
Integer
group_id
,
Integer
[]
menu_ids
,
Integer
[]
film_types
,
Integer
[]
enroll_types
);
...
...
src/main/java/com/egolm/film/api/service/impl/AdminAuthServiceImpl.java
View file @
908ef506
...
...
@@ -105,6 +105,13 @@ public class AdminAuthServiceImpl implements AdminAuthService {
return
list
;
}
@Override
public
List
<
Integer
>
queryGroupEnrolltypeList
(
Integer
group_id
)
{
String
s
=
"select film_type_id from fc_admin_group_enrolltype where group_id = ?"
;
List
<
Integer
>
list
=
jdbcTemplate
.
queryForObjects
(
s
,
Integer
.
class
,
group_id
);
return
list
;
}
@Override
@Transactional
public
void
updateGroupAuth
(
Integer
group_id
,
Integer
[]
menu_ids
,
Integer
[]
film_types
,
Integer
[]
enroll_types
)
{
...
...
src/main/java/com/egolm/film/api/web/admin/AdminAuthController.java
View file @
908ef506
...
...
@@ -184,7 +184,8 @@ public class AdminAuthController {
public
Object
groupAuthQuery
(
Integer
group_id
)
throws
FileNotFoundException
{
List
<
Map
<
String
,
Object
>>
groupMenuList
=
service
.
queryGroupMenuList
(
group_id
);
List
<
Integer
>
groupFilmtypeList
=
service
.
queryGroupFilmtypeList
(
group_id
);
return
Rjx
.
jsonOk
().
set
(
"groupMenuList"
,
groupMenuList
).
set
(
"groupFilmtypeList"
,
groupFilmtypeList
);
List
<
Integer
>
groupEnrolltypeList
=
service
.
queryGroupEnrolltypeList
(
group_id
);
return
Rjx
.
jsonOk
().
set
(
"groupMenuList"
,
groupMenuList
).
set
(
"groupFilmtypeList"
,
groupFilmtypeList
).
set
(
"groupEnrolltypeList"
,
groupEnrolltypeList
);
}
@ResponseBody
...
...
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