mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-11-30 22:20:45 +00:00
鲜花2.0-接口测试bug修复
This commit is contained in:
parent
45ab63dc6d
commit
8a76862c0b
@ -40,7 +40,7 @@ class LossImport implements ToArray, SkipsEmptyRows
|
|||||||
$updateIds = [];
|
$updateIds = [];
|
||||||
$hasGoodsSkus = GoodsSku::query()
|
$hasGoodsSkus = GoodsSku::query()
|
||||||
->whereIn('external_sku_id', $externalSkuIds)
|
->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();
|
->toArray();
|
||||||
$hasGoodsSkus = ArrayUtils::index($hasGoodsSkus, 'external_sku_id');
|
$hasGoodsSkus = ArrayUtils::index($hasGoodsSkus, 'external_sku_id');
|
||||||
$buyerUserIdKeyByNameMap = User::query()->whereIn("name", $buyerNames)->get()
|
$buyerUserIdKeyByNameMap = User::query()->whereIn("name", $buyerNames)->get()
|
||||||
|
|||||||
@ -43,7 +43,7 @@ class PurchaseImport implements ToArray, SkipsEmptyRows
|
|||||||
$updateIds = [];
|
$updateIds = [];
|
||||||
$hasGoodsSkus = GoodsSku::query()
|
$hasGoodsSkus = GoodsSku::query()
|
||||||
->whereIn('external_sku_id', $externalSkuIds)
|
->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();
|
->toArray();
|
||||||
$hasGoodsSkus = ArrayUtils::index($hasGoodsSkus, 'external_sku_id');
|
$hasGoodsSkus = ArrayUtils::index($hasGoodsSkus, 'external_sku_id');
|
||||||
//获取供货商
|
//获取供货商
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user