Commit 5198612b authored by Quxl's avatar Quxl

x

parent a5399332
...@@ -84,8 +84,35 @@ public class FilmServiceImpl implements FilmService { ...@@ -84,8 +84,35 @@ public class FilmServiceImpl implements FilmService {
Long last_modify_time = create_time; Long last_modify_time = create_time;
String create_ip = ServletUtil.remoteIp(WebMvcConfig.getRequest()); String create_ip = ServletUtil.remoteIp(WebMvcConfig.getRequest());
String sql = "insert into fc_member_film (member_id, film_type_name, enroll_type_name, film_group_id, state, is_show, apply_state, is_check_director, create_time, create_ip, last_modify_time) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; String sql = ""
Object[] args = new Object[]{member_id, film_type_name, enroll_type_name, film_group_id, state, is_show, apply_state, is_check_director, create_time, create_ip, last_modify_time}; + "insert into fc_member_film "
+ "("
+ "member_id, "
+ "film_type_name, "
+ "enroll_type_name, "
+ "film_group_id, "
+ "state, "
+ "is_show, "
+ "apply_state, "
+ "is_check_director, "
+ "create_time, "
+ "create_ip, "
+ "last_modify_time"
+ ") "
+ "values "
+ "(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
Object[] args = new Object[]{
member_id,
film_type_name,
enroll_type_name,
film_group_id,
state,
is_show,
apply_state,
is_check_director,
create_time,
create_ip,
last_modify_time};
KeyHolder keyHolder = new GeneratedKeyHolder(); KeyHolder keyHolder = new GeneratedKeyHolder();
jdbcTemplate.update(new PreparedStatementCreator() { jdbcTemplate.update(new PreparedStatementCreator() {
public PreparedStatement createPreparedStatement(Connection connection) throws SQLException { public PreparedStatement createPreparedStatement(Connection connection) throws SQLException {
......
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