From 0ddd0d5eba772cab938c5be8261fabed73c1a88c Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Fri, 19 Apr 2024 09:55:46 +0800 Subject: [PATCH] 1 --- app/Services/PatientOrderService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Services/PatientOrderService.php b/app/Services/PatientOrderService.php index cad2ff0..b2d8a4b 100644 --- a/app/Services/PatientOrderService.php +++ b/app/Services/PatientOrderService.php @@ -1665,7 +1665,8 @@ class PatientOrderService extends BaseService $data['use_status'] = 1; $params = array(); - $params['prescription_product_id'] = $product_data['prescription_product_id']; + $params['order_prescription_id'] = $order_prescription['order_prescription_id']; + $params['product_id'] = $product_data['product_id']; OrderPrescriptionProduct::edit($params, $data); // 锁定库存