fix(dqbom): 导入时未读取到数据时返回错误提示

This commit is contained in:
曹鹏飞 2024-08-14 15:00:12 +08:00
parent b5c91dfe0b
commit 0a3aa2ba26
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ public class DQBomImportService {
EecExcelUtil.handlerExcel(file.getInputStream(), DQbomExcelVO.class, this::handlerExcelRow); EecExcelUtil.handlerExcel(file.getInputStream(), DQbomExcelVO.class, this::handlerExcelRow);
List<DQbomExcelVO> datas = excelContextTL.get(); List<DQbomExcelVO> datas = excelContextTL.get();
VUtils.isTure(datas.isEmpty()).throwMessage("未读取到数据,请检查表头是否正确");
List<OperationErrorMsgVO> errorMsg = checkExcel(datas); List<OperationErrorMsgVO> errorMsg = checkExcel(datas);
if (!errorMsg.isEmpty()) { if (!errorMsg.isEmpty()) {