解决导入商品excel遇到的初始库存为null的报错
This commit is contained in:
@@ -807,7 +807,7 @@ public class MaterialService {
|
|||||||
}
|
}
|
||||||
buildChangeInitialStock(deleteInitialStockMaterialIdList, insertInitialStockMaterialList, materialDepotInitialMap, mId, depotId, materialDepotKey, stock);
|
buildChangeInitialStock(deleteInitialStockMaterialIdList, insertInitialStockMaterialList, materialDepotInitialMap, mId, depotId, materialDepotKey, stock);
|
||||||
} else {
|
} else {
|
||||||
if(initStock.compareTo(BigDecimal.ZERO)!=0) {
|
if(initStock!=null && initStock.compareTo(BigDecimal.ZERO)!=0) {
|
||||||
buildChangeInitialStock(deleteInitialStockMaterialIdList, insertInitialStockMaterialList, materialDepotInitialMap, mId, depotId, materialDepotKey, stock);
|
buildChangeInitialStock(deleteInitialStockMaterialIdList, insertInitialStockMaterialList, materialDepotInitialMap, mId, depotId, materialDepotKey, stock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -817,7 +817,7 @@ public class MaterialService {
|
|||||||
if(stock!=null && stock.compareTo(BigDecimal.ZERO)!=0) {
|
if(stock!=null && stock.compareTo(BigDecimal.ZERO)!=0) {
|
||||||
buildChangeCurrentStock(deleteCurrentStockMaterialIdList, insertCurrentStockMaterialList, materialDepotCurrentMap, mId, depotId, materialDepotKey, stock);
|
buildChangeCurrentStock(deleteCurrentStockMaterialIdList, insertCurrentStockMaterialList, materialDepotCurrentMap, mId, depotId, materialDepotKey, stock);
|
||||||
} else {
|
} else {
|
||||||
if(initStock.compareTo(BigDecimal.ZERO)!=0) {
|
if(initStock!=null && initStock.compareTo(BigDecimal.ZERO)!=0) {
|
||||||
buildChangeCurrentStock(deleteCurrentStockMaterialIdList, insertCurrentStockMaterialList, materialDepotCurrentMap, mId, depotId, materialDepotKey, stock);
|
buildChangeCurrentStock(deleteCurrentStockMaterialIdList, insertCurrentStockMaterialList, materialDepotCurrentMap, mId, depotId, materialDepotKey, stock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user