From 279cc7d90316d96de48be84be8eb6d38ec3d2c18 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 26 Jul 2024 16:53:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BB=A5=E6=9B=B4=E6=96=B0=E5=95=86=E5=93=81?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E8=AE=B0=E5=BD=95=E5=92=8C=E8=B4=A2=E5=8A=A1?= =?UTF-8?q?=E6=B5=81=E6=B0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/order/OrderLogic.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/api/logic/order/OrderLogic.php b/app/api/logic/order/OrderLogic.php index c9eff794..af59d535 100644 --- a/app/api/logic/order/OrderLogic.php +++ b/app/api/logic/order/OrderLogic.php @@ -577,8 +577,7 @@ class OrderLogic extends BaseLogic 'staff_id' => $params['staff_id'] ?? 0, ], ['id' => $order['id']]); //修改商品统计记录标识 - (new StoreProductLog())->update(['store_id' => $params['store_id'],'oid' => $order['id']] - ); + (new StoreProductLog())->where('oid',$order['id'])->update(['store_id' => $params['store_id']]); (new StoreOrderCartInfo())->update([ 'verify_code' => $params['verify_code'] . '-1', 'writeoff_time' => time(), @@ -588,9 +587,7 @@ class OrderLogic extends BaseLogic 'update_time' => time(), ], ['oid' => $order['id']]); $financeFlow = new StoreFinanceFlow(); - $financeFlowProduct = new StoreFinanceFlowProduct(); - $financeFlow->where('order_id',$order['id'])->update(['store_id'=>$params['store_id'],'staff_id'=>$params['staff_id'] ?? 0]); - $financeFlowProduct->where('oid',$order['id'])->update(['store_id'=>$params['store_id']]); + $financeFlow->where('order_id',$order['id'])->update(['store_id'=>$params['store_id'],'staff_id'=>$params['staff_id']]); $financeFlowLogic = new StoreFinanceFlowLogic(); $select_1 = $financeFlow->where(['order_id' => $order['id'], 'financial_pm' => 1, 'financial_type' => ['in' => 14, 15, 16]])->select(); foreach ($select_1 as $k => $v) {