mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-11-30 22:20:45 +00:00
feat: #10000 订单数量更新
This commit is contained in:
parent
12eba85452
commit
c4cb1464c1
@ -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