修改患者病情记录

This commit is contained in:
wucongxing 2023-12-15 17:29:14 +08:00
parent a0a54667b0
commit 734a15f23f
2 changed files with 4 additions and 3 deletions

View File

@ -43,7 +43,7 @@ class GrantUserCouponCommand extends HyperfCommand
// 获取需要发放的优惠卷数据 // 获取需要发放的优惠卷数据
$params = array(); $params = array();
$params['coupon_id'] = 2; $params['coupon_id'] = 3;
$coupon = Coupon::getOne($params); $coupon = Coupon::getOne($params);
if (empty($coupon)){ if (empty($coupon)){
$this->line("结束:无可执行优惠卷"); $this->line("结束:无可执行优惠卷");

View File

@ -88,6 +88,7 @@ class PatientPathographyService extends BaseService
// 获取病情记录列表 // 获取病情记录列表
$fields = [ $fields = [
"pathography_id", "pathography_id",
"order_inquiry_id",
"name", "name",
"sex", "sex",
"age", "age",
@ -104,9 +105,9 @@ class PatientPathographyService extends BaseService
foreach ($patient_pathographys['data'] as &$patient_pathography){ foreach ($patient_pathographys['data'] as &$patient_pathography){
$patient_pathography['reception_time'] = null; $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']); unset($patient_pathography['OrderInquiry']);