Commit 469146dd authored by Quxl's avatar Quxl

x

parent 24ff79b0
......@@ -49,11 +49,11 @@ public class FilmGroupServiceImpl implements FilmGroupService {
@Override
public void updateFilmGroupId(Integer[] film_id, Integer group_id, String group_remark) {
Integer[][] args = new Integer[film_id.length][];
Object[][] args = new Integer[film_id.length][];
for(int i = 0; i < film_id.length; i++) {
args[i] = new Integer[] {group_id, film_id[i]};
args[i] = new Object[] {group_id, group_remark, film_id[i]};
}
jdbcTemplate.batchUpdate("update fc_member_film set film_group_id = ?, group_remark where id = ?", args);
jdbcTemplate.batchUpdate("update fc_member_film set film_group_id = ?, group_remark = ? where id = ?", args);
}
@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