mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 14:40:44 +00:00
commit
59e77ac880
@ -76,7 +76,7 @@ class GoodsSkusController extends Controller
|
|||||||
->select(DB::raw($fields))
|
->select(DB::raw($fields))
|
||||||
->where('external_sku_id', $externalSkuId)
|
->where('external_sku_id', $externalSkuId)
|
||||||
->when($lastInventoryTime, function ($query) use ($lastInventoryTime) {
|
->when($lastInventoryTime, function ($query) use ($lastInventoryTime) {
|
||||||
$query->where('updated_at', '>', $lastInventoryTime);
|
$query->where('created_at', '>', $lastInventoryTime);
|
||||||
})
|
})
|
||||||
->groupBy(['shop_id', 'external_sku_id'])
|
->groupBy(['shop_id', 'external_sku_id'])
|
||||||
->with(['shop:id,name'])
|
->with(['shop:id,name'])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user