| | |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.zy.common.utils.excel.EnInitData; |
| | | import com.zy.common.utils.excel.EnInitDataListener; |
| | | import com.zy.common.utils.excel.matcode.MatCodeExcelListener; |
| | | import com.zy.common.utils.excel.ExcelUtils; |
| | | import com.core.common.R; |
| | | import org.springframework.stereotype.Controller; |
| | |
| | | @PostMapping("upload") |
| | | @ResponseBody |
| | | public R upload(MultipartFile file) throws IOException { |
| | | EasyExcel.read(file.getInputStream(), EnInitData.class, new EnInitDataListener()).sheet().doRead(); |
| | | EasyExcel.read(file.getInputStream(), EnInitData.class, new MatCodeExcelListener()).sheet().doRead(); |
| | | return R.ok(); |
| | | } |
| | | |