fix: 车型项目excel导入问题
This commit is contained in:
+1
-1
@@ -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头部字段
|
||||
|
||||
+1
-1
@@ -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("文件暂无数据,请检查后重试。");
|
||||
|
||||
Reference in New Issue
Block a user