Commit 78149b75 authored by Quxl's avatar Quxl

x

parent 46da156e
...@@ -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);
} }
...@@ -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);
}
} }
...@@ -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();
}
} }
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