|
@@ -50,6 +50,7 @@ public class PurcProductServiceImpl implements PurcProductService {
|
|
|
if (row != null && row.getCell(0) != null && row.getCell(0).getCellType() != Cell.CELL_TYPE_BLANK) {
|
|
if (row != null && row.getCell(0) != null && row.getCell(0).getCellType() != Cell.CELL_TYPE_BLANK) {
|
|
|
total++;
|
|
total++;
|
|
|
Product product = new Product();
|
|
Product product = new Product();
|
|
|
|
|
+ //TODO huangct 上传文件中存在必填信息缺失的情况处理
|
|
|
|
|
|
|
|
// 物料编号
|
|
// 物料编号
|
|
|
if (row.getCell(0) != null) {
|
|
if (row.getCell(0) != null) {
|
|
@@ -60,6 +61,7 @@ public class PurcProductServiceImpl implements PurcProductService {
|
|
|
if (row.getCell(1) != null) {
|
|
if (row.getCell(1) != null) {
|
|
|
row.getCell(1).setCellType(Cell.CELL_TYPE_STRING);
|
|
row.getCell(1).setCellType(Cell.CELL_TYPE_STRING);
|
|
|
product.setTitle(row.getCell(1).getStringCellValue().trim());
|
|
product.setTitle(row.getCell(1).getStringCellValue().trim());
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 原厂型号
|
|
// 原厂型号
|