From ffd5fa44c41a4f1ea81da06bced736f02b19263a Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 3 Feb 2025 14:36:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(api):=20=E4=BF=AE=E6=AD=A3=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E8=AE=A2=E5=8D=95=E6=80=BB=E4=BB=B7=E6=A0=BC=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E8=A1=A8=E5=90=8D=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 BeforehandOrder 修改为 WarehouseOrder,以匹配上下文中的仓库订单逻辑 - 引入 WarehouseOrder 模型用于更新订单总价格 --- app/api/logic/DemoLogic.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/logic/DemoLogic.php b/app/api/logic/DemoLogic.php index 57478c09..24349cf1 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]); } }