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
78149b75
Commit
78149b75
authored
Feb 22, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
46da156e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
FilmGroupService.java
...ain/java/com/egolm/film/api/service/FilmGroupService.java
+3
-0
FilmGroupServiceImpl.java
...com/egolm/film/api/service/impl/FilmGroupServiceImpl.java
+5
-0
FilmGroupController.java
...ava/com/egolm/film/api/web/admin/FilmGroupController.java
+13
-0
No files found.
src/main/java/com/egolm/film/api/service/FilmGroupService.java
View file @
78149b75
...
@@ -25,4 +25,7 @@ public interface FilmGroupService {
...
@@ -25,4 +25,7 @@ public interface FilmGroupService {
Integer
film_type_name
,
Integer
film_type_name_short
,
Integer
play_shanghai
,
Integer
is_important
,
Integer
film_type_name
,
Integer
film_type_name_short
,
Integer
play_shanghai
,
Integer
is_important
,
Integer
review_state
,
Integer
review_round
,
String
film_country
,
Page
page
);
Integer
review_state
,
Integer
review_round
,
String
film_country
,
Page
page
);
void
doNotInvite
(
Integer
film_id
,
Integer
not_invite
,
String
not_invite_text
);
}
}
src/main/java/com/egolm/film/api/service/impl/FilmGroupServiceImpl.java
View file @
78149b75
...
@@ -147,4 +147,9 @@ public class FilmGroupServiceImpl implements FilmGroupService {
...
@@ -147,4 +147,9 @@ public class FilmGroupServiceImpl implements FilmGroupService {
return
jdbcTemplate
.
limit
(
sql
,
page
,
wehre
.
getObjectArray
());
return
jdbcTemplate
.
limit
(
sql
,
page
,
wehre
.
getObjectArray
());
}
}
@Override
public
void
doNotInvite
(
Integer
film_id
,
Integer
not_invite
,
String
not_invite_text
)
{
jdbcTemplate
.
executeUpdate
(
"update fc_member_film set not_invite = ?, not_invite_text = ? where id = ?"
,
not_invite
,
not_invite_text
,
film_id
);
}
}
}
src/main/java/com/egolm/film/api/web/admin/FilmGroupController.java
View file @
78149b75
...
@@ -140,4 +140,17 @@ public class FilmGroupController {
...
@@ -140,4 +140,17 @@ public class FilmGroupController {
return
Rjx
.
jsonOk
();
return
Rjx
.
jsonOk
();
}
}
@ResponseBody
@PostMapping
(
"doNotInvite"
)
@ApiOperation
(
"更新不邀请(移出)状态(0, 1)"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"film_id"
,
value
=
"影片ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"not_invite"
,
value
=
"是否移出: 1移出,不邀请 0不移出,邀请"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"not_invite_text"
,
value
=
"不邀请,移出说明"
),
})
public
Object
doNotInvite
(
Integer
film_id
,
Integer
not_invite
,
String
not_invite_text
)
{
filmGroupService
.
doNotInvite
(
film_id
,
not_invite
,
not_invite_text
);
return
Rjx
.
jsonOk
();
}
}
}
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