radius 动态列隐藏来导出Excel

This commit is contained in:
leijun
2018-12-15 22:53:52 +08:00
parent d8cf08011e
commit 68fe4209c7
6 changed files with 59 additions and 34 deletions

View File

@@ -78,7 +78,7 @@ public class NtcCollectRadiusLogController extends BaseController {
//radius配置导出
@RequestMapping(value = "exportRadius")
public void exportRadius(@ModelAttribute("log") NtcCollectRadiusLog log, Model model, HttpServletRequest request, HttpServletResponse response,RedirectAttributes redirectAttributes){
public void exportRadius(@ModelAttribute("log") NtcCollectRadiusLog log, Model model,String hColumns, HttpServletRequest request, HttpServletResponse response,RedirectAttributes redirectAttributes){
try {
//export data info
List<String> titleList=new ArrayList<String>();
@@ -114,7 +114,7 @@ public class NtcCollectRadiusLogController extends BaseController {
}
titleList.add("radius_log");
classMap.put("radius_log", NtcCollectRadiusLog.class);
String cfgIndexInfoNoExport="";
String cfgIndexInfoNoExport=","+hColumns;
noExportMap.put("radius_log",cfgIndexInfoNoExport);
dataMap.put("radius_log",list);
/*}*/
@@ -125,4 +125,5 @@ public class NtcCollectRadiusLogController extends BaseController {
}
}
}