鲜花2.0-接口测试bug修复

This commit is contained in:
杨建炊 2024-08-10 14:24:26 +08:00
parent 45ab63dc6d
commit 8a76862c0b
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class LossImport implements ToArray, SkipsEmptyRows
$updateIds = [];
$hasGoodsSkus = GoodsSku::query()
->whereIn('external_sku_id', $externalSkuIds)
->get(['id', 'status', 'external_sku_id', 'stock', "sale_stock", "cost"])
->get(['id', 'status', 'external_sku_id', 'stock', "sale_stock", "cost","is_combination"])
->toArray();
$hasGoodsSkus = ArrayUtils::index($hasGoodsSkus, 'external_sku_id');
$buyerUserIdKeyByNameMap = User::query()->whereIn("name", $buyerNames)->get()

View File

@ -43,7 +43,7 @@ class PurchaseImport implements ToArray, SkipsEmptyRows
$updateIds = [];
$hasGoodsSkus = GoodsSku::query()
->whereIn('external_sku_id', $externalSkuIds)
->get(['id', 'status', 'external_sku_id', 'stock', "sale_stock", "cost"])
->get(['id', 'status', 'external_sku_id', 'stock', "sale_stock", "cost","is_combination"])
->toArray();
$hasGoodsSkus = ArrayUtils::index($hasGoodsSkus, 'external_sku_id');
//获取供货商