fix: #0909 订单影响库存同步至所有店铺
This commit is contained in:
parent
2c58a95dd0
commit
e0b82d1132
@ -49,7 +49,7 @@ class UpdateBusinessGoodsStock implements ShouldQueue
|
|||||||
if ('下架' === $event->goodsSku->status) {
|
if ('下架' === $event->goodsSku->status) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$shops = Shop::query()->where('id', '<>', $event->businessOrderItem['shop_id'])->whereNotIn('status', [0, 3])->get(['id', 'plat_id']);
|
$shops = Shop::query()->whereNotIn('status', [0, 3])->get(['id', 'plat_id']);
|
||||||
if (empty($shops)) {
|
if (empty($shops)) {
|
||||||
LogFile::info('可操作店铺为空');
|
LogFile::info('可操作店铺为空');
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user