Integerfilm_no=jdbcTemplate.queryForInt("select ifnull(max(film_no), 0) + 1 from fc_member_film");
Integerfilm_no=jdbcTemplate.queryForInt("select ifnull(max(film_no), 0) + 1 from fc_member_film");
Stringsql="update fc_member_film set film_no = ?, apply_state = ?, upload_state = ?, pass_time = ? where id = ?";
Stringsql="update fc_member_film set film_no = ?, apply_state = ?, upload_state = ?, pass_time = ? where id = ? and (film_no is null or film_no = '')";