fix: 车型项目excel导入问题
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ public class ModelExcelVO {
|
|||||||
|
|
||||||
public boolean emptyRowOrNot() {
|
public boolean emptyRowOrNot() {
|
||||||
ModelExcelVO modelExcel = this;
|
ModelExcelVO modelExcel = this;
|
||||||
return modelExcel.getModel() == null && modelExcel.getModelState() == null;
|
return modelExcel.getModel() == null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 预定义的Excel头部字段
|
// 预定义的Excel头部字段
|
||||||
|
|||||||
+1
-1
@@ -823,7 +823,7 @@ public class ProcessStandardComplianceCheckServiceImpl extends ServiceImpl<Proce
|
|||||||
|
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
ModelExcelVO data = iterator.next();
|
ModelExcelVO data = iterator.next();
|
||||||
if (ExcelUtils.isEmptyRow(data)) {
|
if (data.emptyRowOrNot()) {
|
||||||
iterator.remove();
|
iterator.remove();
|
||||||
if (list.isEmpty()) {
|
if (list.isEmpty()) {
|
||||||
errorMsgs.add("文件暂无数据,请检查后重试。");
|
errorMsgs.add("文件暂无数据,请检查后重试。");
|
||||||
|
|||||||
Reference in New Issue
Block a user