Commit 04d18335 authored by Quxl's avatar Quxl

x

parent 36473887
...@@ -14,4 +14,7 @@ public interface ExportService { ...@@ -14,4 +14,7 @@ public interface ExportService {
Map<String, String> getApplyPassListColumns(); Map<String, String> getApplyPassListColumns();
void exportApplyPassList(ServletOutputStream os, String[] columns, List<Map<String, Object>> list); void exportApplyPassList(ServletOutputStream os, String[] columns, List<Map<String, Object>> list);
Map<String, String> getReviewPassListColumns();
void exportReviewPassList(ServletOutputStream os, String[] columns, List<Map<String, Object>> list);
} }
...@@ -11,7 +11,7 @@ public interface FilmGroupService { ...@@ -11,7 +11,7 @@ public interface FilmGroupService {
List<Map<String, Object>> queryFilmListByGroupId(Integer film_group_id); List<Map<String, Object>> queryFilmListByGroupId(Integer film_group_id);
void updateFilmGroupId(Integer[] film_id, Integer group_id); void updateFilmGroupId(Integer[] film_id, Integer group_id, String group_remark);
void removeFilmGroupById(Integer[] id); void removeFilmGroupById(Integer[] id);
......
...@@ -48,12 +48,12 @@ public class FilmGroupServiceImpl implements FilmGroupService { ...@@ -48,12 +48,12 @@ public class FilmGroupServiceImpl implements FilmGroupService {
} }
@Override @Override
public void updateFilmGroupId(Integer[] film_id, Integer group_id) { public void updateFilmGroupId(Integer[] film_id, Integer group_id, String group_remark) {
Integer[][] args = new Integer[film_id.length][]; Integer[][] args = new Integer[film_id.length][];
for(int i = 0; i < film_id.length; i++) { for(int i = 0; i < film_id.length; i++) {
args[i] = new Integer[] {group_id, film_id[i]}; args[i] = new Integer[] {group_id, film_id[i]};
} }
jdbcTemplate.batchUpdate("update fc_member_film set film_group_id = ? where id = ?", args); jdbcTemplate.batchUpdate("update fc_member_film set film_group_id = ?, group_remark where id = ?", args);
} }
@Override @Override
......
...@@ -135,8 +135,8 @@ public class FilmGroupController { ...@@ -135,8 +135,8 @@ public class FilmGroupController {
@ResponseBody @ResponseBody
@PostMapping("updateFilmGroupId") @PostMapping("updateFilmGroupId")
@ApiOperation("更新影片分类") @ApiOperation("更新影片分类")
public Object updateFilmGroupId(Integer[] film_id, Integer group_id) { public Object updateFilmGroupId(Integer[] film_id, Integer group_id, String group_remark) {
filmGroupService.updateFilmGroupId(film_id, group_id); filmGroupService.updateFilmGroupId(film_id, group_id, group_remark);
return Rjx.jsonOk(); return Rjx.jsonOk();
} }
......
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