feat(sip): 添加读取数据接口
- 新增 listReadData 接口,用于读取 Excel 数据 - 使用 ExcelUtil 工具类导入 Excel 文件 - 返回读取的数据列表master
parent
67306fe9a1
commit
a8ae726103
|
@ -171,4 +171,14 @@ public class OrderInfoController extends BaseController
|
|||
|
||||
return orderInfoService.listImportData(orderListList, orderId);
|
||||
}
|
||||
@PostMapping("/list/readData")
|
||||
@ResponseBody
|
||||
public AjaxResult listReadData(MultipartFile file, Long orderId) throws Exception
|
||||
{
|
||||
ExcelUtil<OrderList> util = new ExcelUtil<OrderList>(OrderList.class);
|
||||
List<OrderList> orderListList = util.importExcel(file.getInputStream());
|
||||
|
||||
|
||||
return AjaxResult.success(orderListList);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue