| | |
| | | import com.zy.asrs.service.MatService; |
| | | import com.zy.asrs.utils.MatExcelListener; |
| | | import com.zy.asrs.utils.OutLocBoxExcelListener; |
| | | import com.zy.asrs.utils.OutpandianBoxExeclListener; |
| | | import com.zy.common.CodeRes; |
| | | import com.zy.common.config.AdminInterceptor; |
| | | import com.zy.common.entity.MatExcel; |
| | |
| | | @ManagerAuth(memo = "导入箱号盘点出库") |
| | | @Transactional |
| | | public R outLocBoxExcelImport1(MultipartFile file) throws IOException { |
| | | OutLocBoxExcelListener listener = new OutLocBoxExcelListener(getUserId()); |
| | | EasyExcel.read(file.getInputStream(), OutLocBoxExcel.class, listener).sheet().doRead(); |
| | | OutpandianBoxExeclListener listener = new OutpandianBoxExeclListener(getUserId()); |
| | | EasyExcel.read(file.getInputStream(), pandianExcel.class, listener).sheet().doRead(); |
| | | return R.ok("成功出库"+listener.getTotal()+"条商品数据"); |
| | | } |
| | | |