Commit a8f33c76 authored by Quxl's avatar Quxl

x

parent 95590d27
......@@ -5,6 +5,8 @@ import java.util.Map;
import javax.servlet.ServletOutputStream;
import com.egolm.film.bean.Fc_member_film;
public interface ExportService {
Map<String, String> getApplyListColumns();
......@@ -17,6 +19,6 @@ public interface ExportService {
Map<String, String> getReviewPassListColumns();
void exportReviewPassList(ServletOutputStream os, String[] columns, List<Map<String, Object>> list);
void exportPublication(ServletOutputStream os, Integer film_id);
void exportPublication(ServletOutputStream os, Fc_member_film film);
}
......@@ -561,9 +561,8 @@ public class ExportServiceImpl implements ExportService {
OssService ossService;
@Override
public void exportPublication(ServletOutputStream os, Integer film_id) {
Fc_member_film film = filmService.queryMemberFilmById(film_id.longValue());
Fc_member_film_ext filmExt = filmService.queryFilmExt(film_id);
public void exportPublication(ServletOutputStream os, Fc_member_film film) {
Fc_member_film_ext filmExt = filmService.queryFilmExt(film.getId().intValue());
Map<String, String> vars = new HashMap<String, String>();
vars.put("1,0", film.getCn_name());
vars.put("2,0", film.getEn_name());
......
......@@ -108,7 +108,7 @@ public class FilmGroupController {
String filmNoString = StringUtil.formatLength(film.getFilm_no(), "0000");
response.setContentType("application/octet-stream");
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode("会刊[" + filmNoString + "].xls", "UTF-8"));
exportService.exportPublication(response.getOutputStream(), film_id);
exportService.exportPublication(response.getOutputStream(), film);
}
@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