实时报表CSV导出调整为后台
This commit is contained in:
@@ -34,6 +34,27 @@ public class ExportController extends BaseController {
|
||||
}
|
||||
_ajaxExport(request,response,titleCode, titleTime, heard, list);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "ajaxCsv")
|
||||
public void ajaxCsv(String exports,HttpServletRequest request,HttpServletResponse response) throws Exception{
|
||||
JSONObject jsonObject = JSONObject.fromObject(StringEscapeUtils.unescapeHtml(exports));
|
||||
Map<String,Object> map=JSONObject.fromObject(jsonObject);
|
||||
List<List<String>> list=(List<List<String >>) map.get("book");
|
||||
List<String> heard=(List<String>) map.get("heard");
|
||||
String titleTime=String.valueOf(map.get("titleTime"));
|
||||
String titleCode=String.valueOf(map.get("titleCode"));
|
||||
if(!StringUtil.isEmpty(titleTime)){
|
||||
if(titleTime.contains("\"")){
|
||||
titleTime = titleTime.replaceAll("\"", "").trim();
|
||||
}
|
||||
if(titleTime.startsWith("[")){
|
||||
titleTime = titleTime.substring(1, titleTime.length()-1);
|
||||
}
|
||||
}
|
||||
_ajaxCsv(request,response,titleCode, titleTime, heard, list);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user