|
|
@@ -1055,13 +1055,13 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
//判断必填项是否为空
|
|
|
ShipItemImportExcel itemExcel = excelList.get(i);
|
|
|
if (ObjectUtil.isEmpty(itemExcel.getGoodsName())) {
|
|
|
- throw new SecurityException("第" + (i + 1) + "行,商品名称为空");
|
|
|
+ throw new SecurityException("第" + (i + 2) + "行,商品名称为空");
|
|
|
}
|
|
|
if (ObjectUtil.isEmpty(itemExcel.getPrice())) {
|
|
|
- throw new SecurityException("第" + (i + 1) + "行,价格为空");
|
|
|
+ throw new SecurityException("第" + (i + 2) + "行,价格为空");
|
|
|
}
|
|
|
if (ObjectUtil.isEmpty(itemExcel.getGoodsNum())) {
|
|
|
- throw new SecurityException("第" + (i + 1) + "行,数量为空");
|
|
|
+ throw new SecurityException("第" + (i + 2) + "行,数量为空");
|
|
|
}
|
|
|
|
|
|
PjOrderItems item = new PjOrderItems();
|
|
|
@@ -1091,14 +1091,14 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
}
|
|
|
} else {//已开启批次号管理
|
|
|
if (ObjectUtil.isEmpty(itemExcel.getDot())) {
|
|
|
- throw new RuntimeException("第" + (i + 1) + "行,商品已开启管理批次号,请填写批次号");
|
|
|
+ throw new RuntimeException("第" + (i + 2) + "行,商品已开启管理批次号,请填写批次号");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
item.setUnits(goodsDesc.getUnit());
|
|
|
item.setSendNum(new BigDecimal("0"));
|
|
|
} else {
|
|
|
- throw new RuntimeException("第" + (i + 1) + "行,商品名称不存在");
|
|
|
+ throw new RuntimeException("第" + (i + 2) + "行,商品名称不存在");
|
|
|
}
|
|
|
|
|
|
list.add(item);
|