患者个人中心,检测订单数量

This commit is contained in:
2023-08-28 16:40:39 +08:00
parent bb74835431
commit 962ed9b7b3
3 changed files with 29 additions and 0 deletions
+5
View File
@@ -59,6 +59,10 @@ class UserPatientService extends BaseService
$OrderProductService = new OrderProductService();
$order_product_count = $OrderProductService->getPatientProductWithStatus($user_patient['patient_id'],1);
// 获取检测数量-待支付
$detectionService = new DetectionService();
$order_detection_count = $detectionService->getPatientDetectionWithStatus($user_patient['patient_id'],1);
// 处理头像
$user_patient['avatar'] = addAliyunOssWebsite($user_patient['avatar']);
@@ -70,6 +74,7 @@ class UserPatientService extends BaseService
$result['order_inquiry_count'] = $order_inquiry_count;
$result['order_prescription_count'] = $order_prescription_count;
$result['order_product_count'] = $order_product_count;
$result['order_detection_count'] = $order_detection_count;
return success($result);
}