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
8beedc76
Commit
8beedc76
authored
Nov 23, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xxx
parent
c2689e40
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
13 deletions
+23
-13
AdminAuthController.java
...in/java/com/egolm/film/api/admin/AdminAuthController.java
+12
-2
AdminAuthServiceImpl.java
...olm/film/api/admin/service/impl/AdminAuthServiceImpl.java
+1
-1
Fc_admin_group_filmtype.java
...ain/java/com/egolm/film/bean/Fc_admin_group_filmtype.java
+8
-8
Fc_admin_menu.java
src/main/java/com/egolm/film/bean/Fc_admin_menu.java
+2
-2
No files found.
src/main/java/com/egolm/film/api/admin/AdminAuthController.java
View file @
8beedc76
...
...
@@ -156,14 +156,24 @@ public class AdminAuthController {
@ResponseBody
@PostMapping
(
"groupAuthUpdate"
)
@ApiOperation
(
"保存或更新管理组权限"
)
public
Object
groupAuthUpdate
(
Integer
group_id
,
Integer
[]
menu_id
,
Integer
[]
film_type
)
{
service
.
updateGroupAuth
(
group_id
,
menu_id
,
film_type
);
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
allowMultiple
=
true
,
name
=
"group_id"
,
value
=
"组ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
allowMultiple
=
true
,
name
=
"menu_id"
,
value
=
"菜单ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
allowMultiple
=
true
,
name
=
"film_type_id"
,
value
=
"影片类型ID"
),
})
public
Object
groupAuthUpdate
(
Integer
group_id
,
Integer
[]
menu_id
,
Integer
[]
film_type_id
)
{
service
.
updateGroupAuth
(
group_id
,
menu_id
,
film_type_id
);
return
Rjx
.
jsonOk
();
}
@ResponseBody
@PostMapping
(
"groupSaveOrUpdate"
)
@ApiOperation
(
"保存或更新管理组"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"group_id"
,
value
=
"组ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"group_name"
,
value
=
"组名"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"state"
,
value
=
"状态"
),
})
public
Object
groupSaveOrUpdate
(
Integer
group_id
,
String
group_name
,
Integer
state
)
{
Fc_admin_group
group
=
new
Fc_admin_group
();
group
.
setGroup_id
(
group_id
);
...
...
src/main/java/com/egolm/film/api/admin/service/impl/AdminAuthServiceImpl.java
View file @
8beedc76
...
...
@@ -111,7 +111,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
for
(
Integer
film_type
:
film_types
)
{
Fc_admin_group_filmtype
gtype
=
new
Fc_admin_group_filmtype
();
gtype
.
setGroup_id
(
group_id
);
gtype
.
setFilm_type
(
film_type
);
gtype
.
setFilm_type
_id
(
film_type
);
gtypeList
.
add
(
gtype
);
}
jdbcTemplate
.
executeUpdate
(
"delete from fc_admin_group_menu where group_id = ?"
,
group_id
);
...
...
src/main/java/com/egolm/film/bean/Fc_admin_group_filmtype.java
View file @
8beedc76
...
...
@@ -18,7 +18,7 @@ public class Fc_admin_group_filmtype implements java.io.Serializable {
private
Integer
group_id
;
@Id
private
Integer
film_type
;
private
Integer
film_type
_id
;
/**
...
...
@@ -31,11 +31,11 @@ public class Fc_admin_group_filmtype implements java.io.Serializable {
/**
* 全参数构造方法
* @param group_id
* @param film_type
* @param film_type
_id
*/
public
Fc_admin_group_filmtype
(
Integer
group_id
,
Integer
film_type
)
{
public
Fc_admin_group_filmtype
(
Integer
group_id
,
Integer
film_type
_id
)
{
this
.
group_id
=
group_id
;
this
.
film_type
=
film_type
;
this
.
film_type
_id
=
film_type_id
;
}
public
void
setGroup_id
(
Integer
group_id
)
{
...
...
@@ -46,12 +46,12 @@ public class Fc_admin_group_filmtype implements java.io.Serializable {
return
group_id
;
}
public
void
setFilm_type
(
Integer
film_type
)
{
this
.
film_type
=
film_type
;
public
void
setFilm_type
_id
(
Integer
film_type_id
)
{
this
.
film_type
_id
=
film_type_id
;
}
public
Integer
getFilm_type
()
{
return
film_type
;
public
Integer
getFilm_type
_id
()
{
return
film_type
_id
;
}
}
...
...
src/main/java/com/egolm/film/bean/Fc_admin_menu.java
View file @
8beedc76
...
...
@@ -18,7 +18,7 @@ public class Fc_admin_menu implements java.io.Serializable {
private
Integer
menu_id
;
/**
* 0 目录, 1 菜单, 2 按钮,其他
* 0 目录, 1 菜单, 2 按钮,其他
功能
*/
private
Integer
menu_type
;
...
...
@@ -45,7 +45,7 @@ public class Fc_admin_menu implements java.io.Serializable {
/**
* 全参数构造方法
* @param menu_id
* @param menu_type 0 目录, 1 菜单, 2 按钮,其他
* @param menu_type 0 目录, 1 菜单, 2 按钮,其他
功能
* @param parent_id
* @param order_num
* @param menu_name
...
...
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