修正分页

This commit is contained in:
2023-03-11 15:00:25 +08:00
parent b7be7e9a79
commit 9030031041
5 changed files with 45 additions and 8 deletions
+3 -1
View File
@@ -30,6 +30,8 @@ class PatientDoctorService extends BaseService
$city_id = $this->request->input('city_id');
$sort_order = $this->request->input('sort_order');
$keyword = $this->request->input('keyword',"");
$page = $this->request->input('page',1);
$per_page = $this->request->input('per_page',10);
// 组合条件
$hospital_params = array();// 医院搜索
@@ -85,7 +87,7 @@ class PatientDoctorService extends BaseService
"be_good_at",
];
$user_doctors = UserDoctor::getInquiryDoctorPage($keyword, $hospital_params, $doctor_params, $doctor_expertise_params, $sort_order, $fields);
$user_doctors = UserDoctor::getInquiryDoctorPage($keyword, $hospital_params, $doctor_params, $doctor_expertise_params, $sort_order, $fields,$per_page);
// 处理数据
if (!empty($user_doctors['data'])) {
+24
View File
@@ -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();
}
}
}