Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
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
曲欣亮
member-api
Commits
2a438e49
Commit
2a438e49
authored
Nov 23, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xxx
parent
005ebd37
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
AdminAuthController.java
...in/java/com/egolm/film/api/admin/AdminAuthController.java
+11
-4
AdminAuthService.java
...va/com/egolm/film/api/admin/service/AdminAuthService.java
+1
-1
AdminAuthServiceImpl.java
...olm/film/api/admin/service/impl/AdminAuthServiceImpl.java
+1
-8
No files found.
src/main/java/com/egolm/film/api/admin/AdminAuthController.java
View file @
2a438e49
...
...
@@ -147,15 +147,15 @@ public class AdminAuthController {
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"group_id"
,
value
=
"组ID"
),
})
public
Object
groupAuth
(
Integer
group_id
)
throws
FileNotFoundException
{
public
Object
groupAuth
Query
(
Integer
group_id
)
throws
FileNotFoundException
{
List
<
Map
<
String
,
Object
>>
list
=
service
.
queryGroupAuth
(
group_id
);
return
Rjx
.
jsonOk
().
setData
(
list
);
}
@ResponseBody
@PostMapping
(
"
updateGroupAuth
"
)
@PostMapping
(
"
groupAuthUpdate
"
)
@ApiOperation
(
"保存或更新管理组权限"
)
public
Object
updateGroupAuth
(
Integer
group_id
,
Integer
[]
menu_id
,
Integer
[]
film_type
)
{
public
Object
groupAuthUpdate
(
Integer
group_id
,
Integer
[]
menu_id
,
Integer
[]
film_type
)
{
service
.
updateGroupAuth
(
group_id
,
menu_id
,
film_type
);
return
Rjx
.
jsonOk
();
}
...
...
@@ -168,7 +168,14 @@ public class AdminAuthController {
group
.
setGroup_id
(
group_id
);
group
.
setGroup_name
(
group_name
);
group
.
setState
(
state
);
service
.
saveOrUpdateGroup
(
group
);
if
(
group
.
getGroup_id
()
==
null
)
{
group
.
setAdminid
((
Integer
)
tokenService
.
getToken
().
getId
());
String
remoteIp
=
WebMvcConfig
.
getRemoteIp
();
group
.
setUser_num
(
0L
);
group
.
setCreate_ip
(
remoteIp
);
group
.
setCreate_time
(
System
.
currentTimeMillis
());
}
service
.
mergeGroup
(
group
);
return
Rjx
.
jsonOk
();
}
...
...
src/main/java/com/egolm/film/api/admin/service/AdminAuthService.java
View file @
2a438e49
...
...
@@ -9,7 +9,7 @@ import com.egolm.film.bean.Fc_admin_group;
public
interface
AdminAuthService
{
void
saveOrUpdat
eGroup
(
Fc_admin_group
group
);
void
merg
eGroup
(
Fc_admin_group
group
);
List
<
Map
<
String
,
Object
>>
queryGroupList
(
String
keyword
,
Page
page
);
...
...
src/main/java/com/egolm/film/api/admin/service/impl/AdminAuthServiceImpl.java
View file @
2a438e49
...
...
@@ -16,7 +16,6 @@ import com.egolm.film.bean.Fc_admin;
import
com.egolm.film.bean.Fc_admin_group
;
import
com.egolm.film.bean.Fc_admin_group_filmtype
;
import
com.egolm.film.bean.Fc_admin_group_menu
;
import
com.egolm.film.config.WebMvcConfig
;
import
com.egolm.film.util.SqlWhere
;
@Service
...
...
@@ -26,13 +25,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
JdbcTemplate
jdbcTemplate
;
@Override
public
void
saveOrUpdateGroup
(
Fc_admin_group
group
)
{
if
(
group
.
getGroup_id
()
==
null
)
{
String
remoteIp
=
WebMvcConfig
.
getRemoteIp
();
group
.
setUser_num
(
0L
);
group
.
setCreate_ip
(
remoteIp
);
group
.
setCreate_time
(
System
.
currentTimeMillis
());
}
public
void
mergeGroup
(
Fc_admin_group
group
)
{
jdbcTemplate
.
merge
(
group
);
}
...
...
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