修正分页
This commit is contained in:
@@ -431,4 +431,28 @@ class PatientOrderService extends BaseService
|
||||
|
||||
return success($order_product);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取药品订单详情
|
||||
* @return array
|
||||
*/
|
||||
public function getPatientProductOrderInfo(): array
|
||||
{
|
||||
$user_info = $this->request->getAttribute("userInfo") ?? [];
|
||||
|
||||
$order_product_id = $this->request->route('order_product_id');
|
||||
|
||||
// 获取订单数据
|
||||
$params = array();
|
||||
$params['patient_id'] = $user_info['client_user_id'];
|
||||
$params['order_product_id'] = $order_product_id;
|
||||
$params['is_delete'] = 0;
|
||||
$order_product = OrderInquiry::getOne($params);
|
||||
if (empty($order_product)){
|
||||
return fail();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user