@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user