SerializeFilter[] filters = new SerializeFilter[]{simpleValueFilter}; JSONArray jsonListAll = JSONArray.parseArray(JSON.toJSONString(list,filters)); List<Map> listMap = JSONArray.parseArray(jsonListAll.toJSONString(), Map.class); List<ExcelExportEntity> entityList = new ArrayList<ExcelExportEntity>(); entityList.add(new ExcelExportEntity("姓名","childName")); entityList.add(new ExcelExportEntity("性別", "childSex")); entityList.add(new ExcelExportEntity("日期", "leaveTime")); entityList.add(new ExcelExportEntity("主要症狀", "symptoms")); entityList.add(new ExcelExportEntity("就醫醫院", "hospital")); entityList.add(new ExcelExportEntity("診斷結果", "medicalResult")); entityList.add(new ExcelExportEntity("是否傳染病", "isInfection")); entityList.add(new ExcelExportEntity("住院/居家", "treatmentResult")); entityList.add(new ExcelExportEntity("目前情況", "state")); entityList.add(new ExcelExportEntity("返園日期", "endTime")); entityList.add(new ExcelExportEntity("備註", "attach")); ExportParams exportParams = new ExportParams("病假追蹤", "病假追蹤"); exportParams.setType(ExcelType.HSSF); Workbook workbook = ExcelExportUtil.exportExcel(exportParams, entityList , listMap );