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
eb2cba31
Commit
eb2cba31
authored
Dec 26, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
407c7021
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
FilmService.java
src/main/java/com/egolm/film/api/service/FilmService.java
+2
-0
FilmServiceImpl.java
...java/com/egolm/film/api/service/impl/FilmServiceImpl.java
+5
-0
FilmController.java
src/main/java/com/egolm/film/api/web/FilmController.java
+11
-0
No files found.
src/main/java/com/egolm/film/api/service/FilmService.java
View file @
eb2cba31
...
@@ -142,4 +142,6 @@ public interface FilmService {
...
@@ -142,4 +142,6 @@ public interface FilmService {
void
verifyFilmDuplicate
(
Long
member_film_id
);
void
verifyFilmDuplicate
(
Long
member_film_id
);
void
updateFilmState
(
Long
member_film_id
,
Integer
state
);
}
}
src/main/java/com/egolm/film/api/service/impl/FilmServiceImpl.java
View file @
eb2cba31
...
@@ -630,4 +630,9 @@ public class FilmServiceImpl implements FilmService {
...
@@ -630,4 +630,9 @@ public class FilmServiceImpl implements FilmService {
}
}
}
}
@Override
public
void
updateFilmState
(
Long
member_film_id
,
Integer
state
)
{
jdbcTemplate
.
executeUpdate
(
"update fc_member_film set state = ? where id = ?"
,
state
,
member_film_id
);
}
}
}
src/main/java/com/egolm/film/api/web/FilmController.java
View file @
eb2cba31
...
@@ -153,4 +153,15 @@ public class FilmController {
...
@@ -153,4 +153,15 @@ public class FilmController {
return
Rjx
.
jsonOk
();
return
Rjx
.
jsonOk
();
}
}
@ResponseBody
@PostMapping
(
"update_state"
)
@ApiOperation
(
"修改影片状态"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"long"
,
required
=
true
,
name
=
"member_film_id"
,
value
=
"影片ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"state"
,
value
=
"影片状态:1未提交 2已提交"
),
})
public
Object
update_state
(
Long
member_film_id
,
Integer
state
)
{
memberFilmService
.
updateFilmState
(
member_film_id
,
state
);
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