修正医生处方列表参数错误问题,新增获取处方列表接口
This commit is contained in:
@@ -705,4 +705,28 @@ class PatientOrderService extends BaseService
|
||||
public function addPatientProductOrder(){
|
||||
return success();
|
||||
}
|
||||
|
||||
public function getPatientPrescriptionOrderList(): array
|
||||
{
|
||||
$user_info = $this->request->getAttribute("userInfo") ?? [];
|
||||
$page = $this->request->input('page',1);
|
||||
$per_page = $this->request->input('per_page',10);
|
||||
|
||||
// 获取处方数据
|
||||
$params = array();
|
||||
$params['patient_id'] = $user_info['client_user_id'];
|
||||
$params['pharmacist_audit_status'] = 1;
|
||||
$params['platform_audit_status'] = 1;
|
||||
$params['is_delete'] = 0;
|
||||
$order_prescription = OrderPrescription::getWithPage($params,['*'],$page,$per_page);
|
||||
if (!empty($order_prescription['data'])){
|
||||
foreach ($order_prescription['data'] as &$item){
|
||||
if (!empty($item['UserDoctor'])){
|
||||
$item['UserDoctor']['doctor_title'] = DoctorTitleCode::getMessage($item['UserDoctor']['doctor_title']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return success($order_prescription);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user