From 734a15f23f0eaff979d807752d6bb16cc41d2669 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Fri, 15 Dec 2023 17:29:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=82=A3=E8=80=85=E7=97=85?= =?UTF-8?q?=E6=83=85=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Command/GrantUserCouponCommand.php | 2 +- app/Services/PatientPathographyService.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Command/GrantUserCouponCommand.php b/app/Command/GrantUserCouponCommand.php index db4cbbc..17e5aad 100644 --- a/app/Command/GrantUserCouponCommand.php +++ b/app/Command/GrantUserCouponCommand.php @@ -43,7 +43,7 @@ class GrantUserCouponCommand extends HyperfCommand // 获取需要发放的优惠卷数据 $params = array(); - $params['coupon_id'] = 2; + $params['coupon_id'] = 3; $coupon = Coupon::getOne($params); if (empty($coupon)){ $this->line("结束:无可执行优惠卷"); diff --git a/app/Services/PatientPathographyService.php b/app/Services/PatientPathographyService.php index 49e0468..c4674a6 100644 --- a/app/Services/PatientPathographyService.php +++ b/app/Services/PatientPathographyService.php @@ -88,6 +88,7 @@ class PatientPathographyService extends BaseService // 获取病情记录列表 $fields = [ "pathography_id", + "order_inquiry_id", "name", "sex", "age", @@ -104,9 +105,9 @@ class PatientPathographyService extends BaseService foreach ($patient_pathographys['data'] as &$patient_pathography){ $patient_pathography['reception_time'] = null; - if (!empty($patient_pathography['order_inquiry'])){ + if (!empty($patient_pathography['OrderInquiry'])){ // 接诊时间 - $patient_pathography['reception_time'] = $patient_pathography['order_inquiry']['reception_time']; + $patient_pathography['reception_time'] = $patient_pathography['OrderInquiry']['reception_time']; } unset($patient_pathography['OrderInquiry']);