fix: 车型项目excel导入问题

This commit is contained in:
2024-09-20 16:58:14 +08:00
parent ce32cfefc0
commit 5efeaac8ef
2 changed files with 2 additions and 2 deletions
@@ -23,7 +23,7 @@ public class ModelExcelVO {
public boolean emptyRowOrNot() {
ModelExcelVO modelExcel = this;
return modelExcel.getModel() == null && modelExcel.getModelState() == null;
return modelExcel.getModel() == null;
}
// 预定义的Excel头部字段
@@ -823,7 +823,7 @@ public class ProcessStandardComplianceCheckServiceImpl extends ServiceImpl<Proce
while (iterator.hasNext()) {
ModelExcelVO data = iterator.next();
if (ExcelUtils.isEmptyRow(data)) {
if (data.emptyRowOrNot()) {
iterator.remove();
if (list.isEmpty()) {
errorMsgs.add("文件暂无数据,请检查后重试。");