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); // 锁定库存