====== Cache ======
===== 개요 =====
[[egovframework:rte:fdl:cache|Cache]] Service 를 적용해서 사용자목록, 민원상담목록, 나의민원상담목록, FAQ목록을 다운로드한다.
===== 설명 =====
==== Configuration ====
=== WEB-INF\config\egovframework\excel\context-excel.xml ===
==== Source ====
=== egovframework\rte\cvpl\web\EgovCvplCnsltController.java ===
Map map = new HashMap();
map.put("cvplCnslt", cvplCnsltList);
return new ModelAndView("cvplCnsltExcelView", "cvplCnsltMap", map);
=== egovframework\rte\cvpl\web\EgovCvplFaqController.java ===
Map map = new HashMap();
map.put("cvplFaq", cvplFaqList);
return new ModelAndView("cvplFaqExcelView", "cvplFaqMap", map);
=== egovframework\rte\cvpl\web\EgovCvplUserController.java ===
Map map = new HashMap();
map.put("cvplUser", cvplUserList);
return new ModelAndView("cvplUserExcelView", "cvplUserMap", map);
=== egovframework\rte\cvpl\web\view\CvplCnsltExcelView.java ===
public class CvplCnsltExcelView extends AbstractExcelView {
...
Map map= (Map) model.get("cvplCnsltMap");
List
=== egovframework\rte\cvpl\web\view\CvplFaqExcelView.java ===
public class CvplFaqExcelView extends AbstractExcelView {
...
Map map= (Map) model.get("cvplFaqMap");
List cvplFaqList = (List) map.get("cvplFaq");
...
}
=== egovframework\rte\cvpl\web\view\CvplUserExcelView.java ===
public class CvplUserExcelView extends AbstractExcelView {
...
Map map= (Map) model.get("cvplUserMap");
List cvplUserList = (List) map.get("cvplUser");
...
}