diff --git a/app/admin/logic/beforehand_order_cart_info/BeforehandOrderCartInfoLogic.php b/app/admin/logic/beforehand_order_cart_info/BeforehandOrderCartInfoLogic.php index 89580cb29..79616754a 100644 --- a/app/admin/logic/beforehand_order_cart_info/BeforehandOrderCartInfoLogic.php +++ b/app/admin/logic/beforehand_order_cart_info/BeforehandOrderCartInfoLogic.php @@ -413,9 +413,7 @@ class BeforehandOrderCartInfoLogic extends BaseLogic if (!$offerResult) { throw new BusinessException('入库失败,采购信息更新出错'); } - $putInCount = PurchaseProductOffer::where('order_id', $purchaseProductOffer['order_id'])->where('is_storage', 1)->count(); - $offerCount = PurchaseProductOffer::where('order_id', $purchaseProductOffer['order_id'])->count(); - if ($putInCount == $offerCount) { + if ($beforehandOrder['is_warehousing'] == 0) { $attrs = ['warehousing_id' => $warehouseOrder['id'], 'is_warehousing' => 1]; if ($beforehandOrder['order_type'] == 7) { $attrs['is_buying'] = 1;