public class ExportExcelUtil<T> extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static HttpClientUtil |
httpClientUtil |
| 构造器和说明 |
|---|
ExportExcelUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
exportExcel(String[] headers,
Collection<T> dataset,
String fileName,
javax.servlet.http.HttpServletResponse response) |
static String |
formatTime(String string) |
void |
getExportedFile(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
String name,
javax.servlet.http.HttpServletResponse response)
方法说明: 写入response
|
static String |
getValue(org.apache.poi.xssf.usermodel.XSSFCell hssfCell) |
static void |
main(String[] args) |
static void |
outputRewardLog(javax.servlet.http.HttpServletResponse response) |
static void |
outputScoreRankList(javax.servlet.http.HttpServletResponse response) |
static void |
outputStaffScoreLog(javax.servlet.http.HttpServletResponse response) |
List<T> |
readXls(Class classes,
org.springframework.web.multipart.MultipartFile file) |
public static HttpClientUtil httpClientUtil
public void exportExcel(String[] headers, Collection<T> dataset, String fileName, javax.servlet.http.HttpServletResponse response)
public void getExportedFile(org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
String name,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exceptionpublic List<T> readXls(Class classes, org.springframework.web.multipart.MultipartFile file) throws IOException, NoSuchMethodException, IllegalAccessException, InstantiationException, InvocationTargetException
public static void main(String[] args)
public static String getValue(org.apache.poi.xssf.usermodel.XSSFCell hssfCell)
public static void outputRewardLog(javax.servlet.http.HttpServletResponse response)
throws com.gemantic.common.exception.ServiceException,
com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionpublic static void outputStaffScoreLog(javax.servlet.http.HttpServletResponse response)
throws com.gemantic.common.exception.ServiceException,
com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionpublic static void outputScoreRankList(javax.servlet.http.HttpServletResponse response)
throws com.gemantic.common.exception.ServiceException,
com.gemantic.common.exception.ServiceDaoException
com.gemantic.common.exception.ServiceExceptioncom.gemantic.common.exception.ServiceDaoExceptionCopyright © 2017. All rights reserved.