feat: #10000 妙选库存更新优化

This commit is contained in:
赵世界 2022-08-24 19:41:11 +08:00
parent 1eb979c6a2
commit 12eba85452

View File

@ -20,7 +20,7 @@ class Goods
{ {
return [ return [
'data' => [ 'data' => [
'stock' => $quantity, 'stock' => max($quantity, 0),
'business_sku_id' => $businessGoods['sku_id'], 'business_sku_id' => $businessGoods['sku_id'],
'business_goods_id' => $businessGoods['goods_id'], 'business_goods_id' => $businessGoods['goods_id'],
'erp_shop_id' => $shopId, 'erp_shop_id' => $shopId,