From e245758ce514d0da68ecc75f779f2bed94ef417d Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Wed, 13 Dec 2023 17:15:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E6=8A=A5=E5=A4=84?= =?UTF-8?q?=E6=96=B9=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Command/ReportRegulatoryCommand.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Command/ReportRegulatoryCommand.php b/app/Command/ReportRegulatoryCommand.php index 371b85c..4badcf4 100644 --- a/app/Command/ReportRegulatoryCommand.php +++ b/app/Command/ReportRegulatoryCommand.php @@ -696,6 +696,11 @@ class ReportRegulatoryCommand extends HyperfCommand $icd_name = $icd_name_data[0]; } + if (empty($icd_name)){ + $this->line("无疾病名称数据"); + return []; + } + $icd_code_data = array_column($order_prescription_icd->toArray(), 'icd_code'); if (count($icd_code_data) > 1) { $icd_code = implode('|', $icd_code_data); @@ -703,6 +708,11 @@ class ReportRegulatoryCommand extends HyperfCommand $icd_code = $icd_code_data[0]; } + if (empty($icd_code)){ + $this->line("无icd编码数据"); + return []; + } + // 网络复诊服务 $data = array(); $data['thirdUniqueid'] = $order_inquiry['order_inquiry_id']; // 唯一标识