/**
*
* 功能描述:
* 批量导出
*
* @param request
* @param response
* @see [相关类/方法](可选)
* @since [产品/模块版本](可选)
*/
@RequestMapping("sgbatchOutput")
public void batchOutput(HttpServletRequest request, HttpServletResponse response) {
String type = request.getParameter("type");
logger.info("type:" + type, type);
int typevalue = Integer.parseInt(type);
List
-----------------------------------------------------------------------------------------------------------------
/**
*
* 功能描述:
* 写CSV文件
*
*/
public void writeCsv(BufferedWriter bufferedWriter, List
bufferedWriter.write("常用\n");
bufferedWriter.write("关键词,类型,目录,名称,图片url,url链接,值,\n");
for (Map
bufferedWriter.write(map.get("KEYWORD").toString() + "," + map.get("TYPE").toString() + ","
+ map.get("DIR_ID").toString() + "," + map.get("DIR_NAME").toString() + ","
+ map.get("DIR_IMAGE").toString() + "," + map.get("URL").toString() + ","
+ map.get("SORT").toString() + "\n");
bufferedWriter.flush();
}
}
}
------------------------------------------------------------------------------------------------------------
service
/**
* 功能描述:
* 批量导出 *
* @param type
* @return
* @see [相关类/方法](可选)
* @since [产品/模块版本](可选)
*/
public List
/**
*
* 功能描述:
* 批量导出常用分类
*
* @param type
* @return
* @see [相关类/方法](可选)
* @since [产品/模块版本](可选)
*/
public List
// List