示例#1
0
 /** 导出搜索 王梦圆 2015年6月15日 */
 @RequestMapping(value = "/exportSearch", method = RequestMethod.POST)
 public void exportSearch(Search search, HttpServletRequest request, HttpServletResponse response)
     throws UnsupportedEncodingException {
   this.addLog(request, "导出搜索", Constant.LOG_TYPE_EXPORT);
   String searchContent = search.getSearchContent();
   searchContent = new String(searchContent.getBytes("iso-8859-1"), "utf-8");
   String userNickname = search.getUserNickname();
   userNickname = new String(userNickname.getBytes("iso-8859-1"), "utf-8");
   List<Search> searchs = searchService.findAll(search, this.getExportPage(request));
   super.doExport(
       request,
       response,
       searchs,
       "搜索关键词",
       "搜索关键词",
       this.getHeadForSearch(),
       this.getColumnForSearch());
 }
示例#2
0
 /** 根据operator导出log表中的信息 彭坤 2015年4月29日 */
 @RequestMapping(value = "/exportSysLog", method = RequestMethod.POST)
 public void exportSysLog(
     Operator operator, Log log, HttpServletRequest request, HttpServletResponse response)
     throws UnsupportedEncodingException {
   this.addLog(request, "导出操作日志信息", Constant.LOG_TYPE_EXPORT);
   String logContent = log.getLogContent();
   logContent = new String(logContent.getBytes("iso-8859-1"), "utf-8");
   log.setLogContent(logContent);
   List<Log> logList =
       sysConfigService.findLogByOperatorId(operator, log, this.getExportPage(request));
   super.doExport(
       request,
       response,
       logList,
       "操作日志",
       "操作日志",
       this.getHeadForSysLog(),
       this.getColumnForSysLog());
 }
示例#3
0
 /**
  * 导出系统参数 黄扬仲 2015年4月28日
  *
  * @throws UnsupportedEncodingException
  */
 @RequestMapping(value = "/exportSysConfig", method = RequestMethod.POST)
 public void exportSysConfig(
     SysConfig sysConfig, HttpServletRequest request, HttpServletResponse response)
     throws UnsupportedEncodingException {
   this.addLog(request, "导出系统参数", Constant.LOG_TYPE_EXPORT);
   String sysConfigKey = sysConfig.getSysConfigKey();
   String sysConfigValue = sysConfig.getSysConfigValue();
   String sysConfigDesc = sysConfig.getSysConfigDesc();
   sysConfigKey = new String(sysConfigKey.getBytes("iso-8859-1"), "utf-8");
   sysConfigValue = new String(sysConfigValue.getBytes("iso-8859-1"), "utf-8");
   sysConfigDesc = new String(sysConfigDesc.getBytes("iso-8859-1"), "utf-8");
   sysConfig.setSysConfigKey(sysConfigKey);
   sysConfig.setSysConfigValue(sysConfigValue);
   sysConfig.setSysConfigDesc(sysConfigDesc);
   List<SysConfig> sysConfigList = sysConfigService.find(sysConfig, this.getExportPage(request));
   super.doExport(
       request,
       response,
       sysConfigList,
       "系统参数设置",
       "系统参数设置",
       this.getHeadForSysConfig(),
       this.getColumnForSysConfig());
 }