Commit eb2cba31 authored by Quxl's avatar Quxl

x

parent 407c7021
...@@ -141,5 +141,7 @@ public interface FilmService { ...@@ -141,5 +141,7 @@ public interface FilmService {
List<Fc_member_film_enroll> queryFilmEnrollList(Long member_film_id); List<Fc_member_film_enroll> queryFilmEnrollList(Long member_film_id);
void verifyFilmDuplicate(Long member_film_id); void verifyFilmDuplicate(Long member_film_id);
void updateFilmState(Long member_film_id, Integer state);
} }
...@@ -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);
}
} }
...@@ -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();
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment