导入提示报错

This commit is contained in:
wuweihua
2026-10-22 15:57:08 +08:00
parent d010783c97
commit 23236ec141
3 changed files with 6 additions and 4 deletions
@@ -1671,7 +1671,7 @@ public class BmsProductServiceImpl implements IBmsProductService
int[] header = findHeaderCell(sheet, "\u5bf9\u63a5\u4ee3\u7801");
if (header == null)
{
return list;
throw new ServiceException(MessageUtils.message("price.product.import.catalogHeaderMissing"));
}
int headerRowIdx = header[0];
int colCode = header[1];
@@ -2455,7 +2455,7 @@ public class BmsProductServiceImpl implements IBmsProductService
}
if (header == null)
{
return list;
throw new ServiceException(MessageUtils.message("price.product.import.countryCatalogHeaderMissing"));
}
Row head = sheet.getRow(header[0]);
int colCode = firstCol(head, "\u4ea7\u54c1ID", "\u4ea7\u54c1\u5bf9\u63a5\u4ee3\u7801", "\u4ea7\u54c1\u4ee3\u7801");
@@ -1502,7 +1502,7 @@ public class BmsRedlineProductServiceImpl implements IBmsRedlineProductService
int[] header = findHeaderCell(sheet, "\u5bf9\u63a5\u4ee3\u7801");
if (header == null)
{
return list;
throw new ServiceException(MessageUtils.message("price.product.import.catalogHeaderMissing"));
}
int headerRowIdx = header[0];
int colCode = header[1];
@@ -2265,7 +2265,7 @@ public class BmsRedlineProductServiceImpl implements IBmsRedlineProductService
}
if (header == null)
{
return list;
throw new ServiceException(MessageUtils.message("price.product.import.countryCatalogHeaderMissing"));
}
Row head = sheet.getRow(header[0]);
int colCode = firstCol(head, "\u4ea7\u54c1ID", "\u4ea7\u54c1\u5bf9\u63a5\u4ee3\u7801", "\u4ea7\u54c1\u4ee3\u7801");