List<String[]> fieldNames = new ArrayList<String[]>();
fieldNames.add(new String[] { "loginEmail", "nickName", "password", "trueName", "mobilePhone",
"isEnabledStr", "score", "customerTypeStr", "registerTimeStr", "registerIp", "lastLoginTimeStr",
"lastLoginIp", "visitorUuid", "relativeQq", "relativeSina", "relativeRrw", "communityName", "schoolName" });
ExportSetInfo setInfo = new ExportSetInfo();
setInfo.setObjsMap(customerService.getExportData());
setInfo.setFieldNames(fieldNames);
setInfo.setTitles(new String[] { "馋八戒前台顾客信息" });
setInfo.setHeadNames(headNames);
setInfo.setOut(baos);
// 将需要导出的数据输出到baos
ExcelUtil.export2Excel(setInfo);
return new ByteArrayInputStream(baos.toByteArray());