This commit is contained in:
2023-04-25 20:51:07 +08:00
parent 2255d3a3a1
commit d215493859
4 changed files with 26 additions and 2 deletions
+6 -1
View File
@@ -130,17 +130,23 @@ class CaService extends BaseService
return;
}
dump(111);
$this->icd_name = "";
$icd_name = array_column($order_prescription_icd->toArray(), 'icd_name');
dump($icd_name);
if (!empty($icd_name)) {
if (count($icd_name) > 1) {
dump(22222);
$this->icd_name = implode(';', $icd_name);
} else {
dump(333);
$this->icd_name = $icd_name[0];
}
}
});
dump($this->icd_name);
// 获取处方关联商品数据
co(function () use ($wg,$channel,$order_prescription_id) {
defer(function() use ($wg) {
@@ -197,7 +203,6 @@ class CaService extends BaseService
$params['order_inquiry_id'] = $order_inquiry_id;
$order_inquiry_case = OrderInquiryCase::getOne($params);
if (empty($order_inquiry_case)) {
dump(111);
$channel->push('处方病例数据错误');
return;
}