@RequestMapping(value = "/import", method = RequestMethod.POST) @ResponseBody public Object importFailDate(MultipartFile file, HttpServletResponse response) throws IOException { Map<String, Object> resultMap = new HashMap<String, Object>(4); if (file == null) { resultMap.put("message", "上传文件不能为空"); return resultMap; } ExcelImport excelImport = new ExcelImport(); List<FsideePrepaysExcel> result = (ArrayList) excelImport.importExcel(file.getInputStream(), FsPrepaysExcel.class); return result; }
文件上传转为list,不用暂存
最新推荐文章于 2022-07-19 13:58:41 发布