feat(sip): 添加读取数据接口

- 新增 listReadData 接口,用于读取 Excel 数据
- 使用 ExcelUtil 工具类导入 Excel 文件
- 返回读取的数据列表
master
chenhao 2025-05-19 14:04:30 +08:00
parent 67306fe9a1
commit a8ae726103
1 changed files with 10 additions and 0 deletions

View File

@ -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);
}
}