修正获取处方详情接口返回数据
This commit is contained in:
@@ -70,7 +70,7 @@ class OrderPrescriptionService extends BaseService
|
||||
$params = array();
|
||||
$params['order_inquiry_id'] = $order_inquiry_id;
|
||||
$params['order_prescription_id'] = $order_prescription_id;
|
||||
$order_prescription_products = OrderPrescriptionProduct::getWithProductList($params);
|
||||
$order_prescription_products = OrderPrescriptionProduct::getLimit($params);
|
||||
if(empty($order_prescription_products)){
|
||||
return [];
|
||||
}
|
||||
@@ -82,13 +82,12 @@ class OrderPrescriptionService extends BaseService
|
||||
$data['prescription_product_id'] = $order_prescription_product['prescription_product_id'];
|
||||
$data['product_id'] = $order_prescription_product['product_id'];
|
||||
$data['prescription_product_num'] = $order_prescription_product['prescription_product_num'];
|
||||
$data['product_name'] = $order_prescription_product['Product']['product_name'];
|
||||
$data['product_cover_img'] = addAliyunOssWebsite($order_prescription_product['Product']['product_cover_img']);
|
||||
$data['product_spec'] = $order_prescription_product['Product']['product_spec'];
|
||||
$data['single_unit'] = $order_prescription_product['Product']['single_unit'];
|
||||
$data['single_use'] = $order_prescription_product['Product']['single_use'];
|
||||
$data['packaging_unit'] = $order_prescription_product['Product']['packaging_unit'];
|
||||
$data['frequency_use'] = $order_prescription_product['Product']['frequency_use'];
|
||||
$data['product_name'] = $order_prescription_product['product_name'] ?? "";
|
||||
$data['product_spec'] = $order_prescription_product['product_spec'] ?? "";
|
||||
$data['single_unit'] = $order_prescription_product['single_unit'] ?? "";
|
||||
$data['single_use'] = $order_prescription_product['single_use'] ?? "";
|
||||
$data['packaging_unit'] = $order_prescription_product['packaging_unit'] ?? "";
|
||||
$data['frequency_use'] = $order_prescription_product['frequency_use'] ?? "";
|
||||
|
||||
$result[] = $data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user