患者个人中心,检测订单数量
This commit is contained in:
@@ -953,4 +953,18 @@ class DetectionService extends BaseService
|
||||
$params['order_detection_id'] = $order_detection['order_detection_id'];
|
||||
OrderDetection::editOrderDetection($params, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取患者某一状态下的检测订单数量
|
||||
* @param string $patient_id 患者id
|
||||
* @param int $detection_status 检测订单状态(1:待支付 2:待绑定 3:检测中 4:检测完成 5:已取消)
|
||||
* @return int
|
||||
*/
|
||||
public function getPatientDetectionWithStatus(string $patient_id,int $detection_status): int
|
||||
{
|
||||
$params = array();
|
||||
$params['patient_id'] = $patient_id;
|
||||
$params['detection_status'] = $detection_status;
|
||||
return OrderDetection::getCount($params);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user