上报处方平台 监管平台
Build Docker / build (push) Waiting to run

This commit is contained in:
haomingming
2025-12-30 15:24:34 +08:00
parent e34eea86e1
commit 7560486731
2 changed files with 33 additions and 2 deletions
@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace App\Command;
use App\Exception\BusinessException;
use App\Model\OrderInquiry;
use App\Model\OrderPrescription;
use App\Model\OrderProduct;
use App\Model\OrderSystem;
@@ -72,6 +73,22 @@ class ReportPreProductOrderCommand extends HyperfCommand
continue;
}
// 获取问诊订单数据
$params = array();
$params['order_inquiry_id'] = $item['order_inquiry_id'];
$order_inquiry = OrderInquiry::getOne($params);
if (empty($order_inquiry)) {
$this->line("结束,问诊订单数据错误");
continue;
}
//检测是否为抄方订单
if (!empty($order_inquiry['transfer_doctor_id'])){
$this->line("结束,该问诊订单为抄方订单");
continue;
}
Db::beginTransaction();
try {
@@ -152,6 +169,7 @@ class ReportPreProductOrderCommand extends HyperfCommand
'order_product_id',
'patient_id',
'order_prescription_id',
'order_inquiry_id',
];
$order_product = OrderProduct::getList($params,$fields);