feat: #10000 订单数量更新
This commit is contained in:
parent
12eba85452
commit
c4cb1464c1
@ -76,7 +76,7 @@ class GoodsSkusController extends Controller
|
||||
->select(DB::raw($fields))
|
||||
->where('external_sku_id', $externalSkuId)
|
||||
->when($lastInventoryTime, function ($query) use ($lastInventoryTime) {
|
||||
$query->where('updated_at', '>', $lastInventoryTime);
|
||||
$query->where('created_at', '>', $lastInventoryTime);
|
||||
})
|
||||
->groupBy(['shop_id', 'external_sku_id'])
|
||||
->with(['shop:id,name'])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user