feat: #10000 订单数量更新

This commit is contained in:
赵世界 2022-08-25 10:29:34 +08:00
parent 12eba85452
commit c4cb1464c1

View File

@ -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'])