获取患者进行中的检测订单
This commit is contained in:
@@ -470,6 +470,29 @@ class DetectionService extends BaseService
|
||||
return success($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取患者进行中的检测订单
|
||||
* @return array
|
||||
*/
|
||||
public function getDetectionDoctorOrderFirst(): array
|
||||
{
|
||||
$user_info = $this->request->getAttribute("userInfo") ?? [];
|
||||
|
||||
$family_id = $this->request->input("family_id");
|
||||
|
||||
// 检测是否存在同类型未完成的检测订单
|
||||
$params = array();
|
||||
$params['patient_id'] = $user_info['client_user_id'];
|
||||
$params['family_id'] = $family_id;
|
||||
$order_detection = OrderDetection::getOne($params);
|
||||
if (empty($order_detection)){
|
||||
return success();
|
||||
}
|
||||
|
||||
return success($order_detection['order_detection_id']);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消未支付检测订单
|
||||
* @param string|int $order_no 订单编号
|
||||
|
||||
Reference in New Issue
Block a user