fix(dqbom): 导入时未读取到数据时返回错误提示
This commit is contained in:
parent
b5c91dfe0b
commit
0a3aa2ba26
|
|
@ -76,6 +76,7 @@ public class DQBomImportService {
|
|||
EecExcelUtil.handlerExcel(file.getInputStream(), DQbomExcelVO.class, this::handlerExcelRow);
|
||||
|
||||
List<DQbomExcelVO> datas = excelContextTL.get();
|
||||
VUtils.isTure(datas.isEmpty()).throwMessage("未读取到数据,请检查表头是否正确");
|
||||
|
||||
List<OperationErrorMsgVO> errorMsg = checkExcel(datas);
|
||||
if (!errorMsg.isEmpty()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue