Commit 2e792b28 authored by Quxl's avatar Quxl

x

parent 89fb206a
......@@ -95,7 +95,7 @@ public interface FilmService {
List<Map<String, Object>> queryChuShenList(String keyword, Integer state, Integer apply_state, Integer upload_state, Integer film_type, Integer enroll_type, String film_country, Integer film_type_short, Page page);
void pass(Long member_film_id);
Integer pass(Long member_film_id);
void reject(Long member_film_id, String apply_state_intro);
......
......@@ -376,11 +376,12 @@ public class FilmServiceImpl implements FilmService {
}
@Override
public synchronized void pass(Long member_film_id) {
public synchronized Integer pass(Long member_film_id) {
this.updateEnroll(member_film_id);
Integer film_no = jdbcTemplate.queryForInt("select ifnull(max(film_no), 0) + 1 from fc_member_film");
String sql = "update fc_member_film set film_no = ?, apply_state = ?, upload_state = ?, pass_time = ? where id = ?";
jdbcTemplate.executeUpdate(sql, film_no, 2, 0, System.currentTimeMillis()/1000L, member_film_id);
return film_no;
}
@Override
......
......@@ -145,7 +145,7 @@ public class AdminFirstController {
String film_no = StringUtil.formatLength(memberFilm.getFilm_no(), "0000");
content = MessageFormat.format(content, member.getUsername(), film_no, filmName == null ? "" : filmName);
emailService.send(subject, content, member.getEmail());
return Rjx.jsonOk().set("email", member.getEmail());
return Rjx.jsonOk().set("email", member.getEmail()).set("film_no", memberFilm.getFilm_no());
}
@ResponseBody
......
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