|
|
@@ -125,6 +125,9 @@ public class StockGoodsServiceImpl extends ServiceImpl<StockGoodsMapper, StockGo
|
|
|
stockGoods.setLockingQuantity(datum.getLockingQuantity());
|
|
|
stockGoods.setBalanceQuantity(datum.getBalanceQuantity());
|
|
|
stockGoods.setSurplusRouteQuantity(datum.getSurplusRouteQuantity());
|
|
|
+ if (stockGoods.getInQuantity() == null){
|
|
|
+ stockGoods.setInQuantity(datum.getBalanceQuantity());
|
|
|
+ }
|
|
|
stockGoods.setTenantId(SecureUtil.getTenantId());
|
|
|
//获取商品id
|
|
|
R<GoodsDesc> goodsDesc = goodsDescClient.GoodsByCode(datum.getCode());
|