diff --git a/app/api/logic/DemoLogic.php b/app/api/logic/DemoLogic.php index 57478c099..24349cf14 100644 --- a/app/api/logic/DemoLogic.php +++ b/app/api/logic/DemoLogic.php @@ -8,6 +8,7 @@ use app\common\model\beforehand_order_cart_info\BeforehandOrderCartInfo; use app\common\model\store_branch_product\StoreBranchProduct; use app\common\model\store_product\StoreProduct; use app\common\model\store_product_group_price\StoreProductGroupPrice; +use app\common\model\warehouse_order\WarehouseOrder; use app\common\model\warehouse_product\WarehouseProduct; use app\common\model\warehouse_product_storege\WarehouseProductStorege; use think\facade\Db; @@ -154,7 +155,7 @@ class DemoLogic extends BaseLogic } }); $total_price=WarehouseProduct::where('oid', $outbound_id)->sum('total_price'); - BeforehandOrder::where('id', $outbound_id)->update(['total_price' => $total_price]); + WarehouseOrder::where('id', $outbound_id)->update(['total_price' => $total_price]); } }