/**
* 注入的具有排序功能的handle
*/
private static final SortRowWriteHandler SORT_ROW_WRITE_HANDLER = new SortRowWriteHandler();
/**
* 导出excel-指定excel表头列
*
* @param list 列表数据
* @param clazz 列表项类
* @param fileName 文件名称
* @param response 响应
* @param <T> 类
*/
public static <T> void exportExcelInclude(List<T> list, Class<T> clazz, String fileName, HttpServletResponse response, List<String> includeTitleList) throws IOException {
response.setContentType("application/vnd.ms-excel");
response.setCharacterEncoding("utf-8");
String exportFileName = fileName + "-" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss"));
exportFileName = URLEncoder.encode(exportFileName, "UTF-8").replaceAll("\\+", "%20");
res