对于ZfCleanController,ZfCollectionController,ZfContactController,
ZfDoctorController,ZfEconomyController,ZfEquipmentController,
ZfEventController,ZfPetController,ZfPetNoteController,
ZfPropertyController把对应导入模板请求修改成了post请求,另外把对应的
sheetName进行了修改
| | |
| | | /** |
| | | * 获取导入模板 |
| | | */ |
| | | @GetMapping("/model") |
| | | @PostMapping("/model") |
| | | public void getExportModel(HttpServletResponse response){ |
| | | List<ZfCleanExcelBean> list = Collections.singletonList(new ZfCleanExcelBean()); |
| | | ExcelUtil<ZfCleanExcelBean> util = new ExcelUtil<>(ZfCleanExcelBean.class); |
| | | util.exportExcel(response,list,"保洁收纳记录数据"); |
| | | util.exportExcel(response,list,"保洁收纳导入模板"); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * 获取导入模板 |
| | | */ |
| | | @GetMapping("/model") |
| | | @PostMapping("/model") |
| | | public void getExportModel(HttpServletResponse response){ |
| | | List<ZfCollectionExcelBean> list = Collections.singletonList(new ZfCollectionExcelBean()); |
| | | ExcelUtil<ZfCollectionExcelBean> util = new ExcelUtil<>(ZfCollectionExcelBean.class); |
| | | util.exportExcel(response,list,"收藏荣誉记录数据"); |
| | | util.exportExcel(response,list,"收藏荣誉导入模板"); |
| | | } |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 获取导入模板 |
| | | */ |
| | | @GetMapping("/model") |
| | | @PostMapping("/model") |
| | | public void getExportModel(HttpServletResponse response){ |
| | | List<ZfContactExcelBean> list = Collections.singletonList(new ZfContactExcelBean()); |
| | | ExcelUtil<ZfContactExcelBean> util = new ExcelUtil<>(ZfContactExcelBean.class); |
| | | util.exportExcel(response,list,"通讯录数据"); |
| | | util.exportExcel(response,list,"通讯录导入模板"); |
| | | } |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 获取导入模板 |
| | | */ |
| | | @GetMapping("/model") |
| | | @PostMapping("/model") |
| | | public void getExportModel(HttpServletResponse response){ |
| | | List<ZfDoctor> list = Collections.singletonList(new ZfDoctor()); |
| | | ExcelUtil<ZfDoctor> util = new ExcelUtil<>(ZfDoctor.class); |
| | | util.exportExcel(response,list,"小医生记录数据"); |
| | | util.exportExcel(response,list,"家庭小医生导入模板"); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * 获取导入模板 |
| | | */ |
| | | @GetMapping("/model") |
| | | @PostMapping("/model") |
| | | public void getExportModel(HttpServletResponse response){ |
| | | List<ZfEconomyExcelBean> list = Collections.singletonList(new ZfEconomyExcelBean()); |
| | | ExcelUtil<ZfEconomyExcelBean> util = new ExcelUtil<>(ZfEconomyExcelBean.class); |
| | | util.exportExcel(response,list,"家庭收支台账记录数据"); |
| | | util.exportExcel(response,list,"家庭收支台账导入模板"); |
| | | } |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 获取导入模板 |
| | | */ |
| | | @GetMapping("/model") |
| | | @PostMapping("/model") |
| | | public void getExportModel(HttpServletResponse response){ |
| | | List<ZfEquipmentExcelBean> list = Collections.singletonList(new ZfEquipmentExcelBean()); |
| | | ExcelUtil<ZfEquipmentExcelBean> util = new ExcelUtil<>(ZfEquipmentExcelBean.class); |
| | | util.exportExcel(response,list,"家庭设备记录数据"); |
| | | util.exportExcel(response,list,"家庭设备导入模板"); |
| | | } |
| | | |
| | | |
| | |
| | | public void getExportModel(HttpServletResponse response){ |
| | | List<ZfEventExcelBean> list = Collections.singletonList(new ZfEventExcelBean()); |
| | | ExcelUtil<ZfEventExcelBean> util = new ExcelUtil<>(ZfEventExcelBean.class); |
| | | util.exportExcel(response,list,"家大事记记录数据"); |
| | | util.exportExcel(response,list,"家大事记导入模板"); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * 获取导入模板 |
| | | */ |
| | | @GetMapping("/model") |
| | | @PostMapping("/model") |
| | | public void getExportModel(HttpServletResponse response){ |
| | | List<ZfPet> list = Collections.singletonList(new ZfPet()); |
| | | ExcelUtil<ZfPet> util = new ExcelUtil<>(ZfPet.class); |
| | | util.exportExcel(response,list,"魅宠记录数据"); |
| | | util.exportExcel(response,list,"魅宠记录导入模板"); |
| | | } |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 获取导入模板 |
| | | */ |
| | | @GetMapping("/model") |
| | | @PostMapping("/model") |
| | | public void getExportModel(HttpServletResponse response){ |
| | | List<ZfPetNote> list = Collections.singletonList(new ZfPetNote()); |
| | | ExcelUtil<ZfPetNote> util = new ExcelUtil<>(ZfPetNote.class); |
| | | util.exportExcel(response,list,"魅宠备忘录记录数据"); |
| | | util.exportExcel(response,list,"魅宠备忘录导入模板"); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * 获取导入模板 |
| | | */ |
| | | @GetMapping("/model") |
| | | @PostMapping("/model") |
| | | public void getExportModel(HttpServletResponse response){ |
| | | List<ZfPropertyExcelBean> list = Collections.singletonList(new ZfPropertyExcelBean()); |
| | | ExcelUtil<ZfPropertyExcelBean> util = new ExcelUtil<>(ZfPropertyExcelBean.class); |
| | | util.exportExcel(response,list,"家庭资产记录数据"); |
| | | util.exportExcel(response,list,"家庭资产导入模板"); |
| | | } |
| | | |
| | | /** |