diff --git a/app/Http/Controllers/Goods/GoodsSkusController.php b/app/Http/Controllers/Goods/GoodsSkusController.php index 5adc9cf..4c95ad4 100644 --- a/app/Http/Controllers/Goods/GoodsSkusController.php +++ b/app/Http/Controllers/Goods/GoodsSkusController.php @@ -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'])