Commit d8922dfc authored by Quxl's avatar Quxl

x

parent 89c00c4a
......@@ -64,7 +64,10 @@ public class FilmServiceImpl implements FilmService {
@Override
public void doApply(Integer member_id, Long member_film_id) {
jdbcTemplate.executeUpdate("update fc_member_film set state = 2, apply_state = 1 where id = ? and member_id = ? and state = 1", member_film_id, member_id);
int count = jdbcTemplate.executeUpdate("update fc_member_film set state = 2, apply_state = 1 where id = ? and member_id = ? and state = 1", member_film_id, member_id);
if(count == 0) {
throw new XRException("该片当前状态不能提交申报");
}
}
@Override
......
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