上报处方平台 监管平台
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
+15 -2
View File
@@ -82,7 +82,9 @@ class ReportRegulatoryCommand extends HyperfCommand
// 上报网络咨询
try {
if ($report_regulatory['report_consult_status'] != 1 && $report_regulatory['report_consult_int'] < 5){
//检测是否为抄方订单
$transferInquiryOrder = $this->checkTransferInquiryOrder($order_inquiry);
if ($report_regulatory['report_consult_status'] != 1 && $report_regulatory['report_consult_int'] < 5 && $transferInquiryOrder){
$this->line("上报网络咨询");
// 获取上报数据-网络咨询
@@ -115,7 +117,9 @@ class ReportRegulatoryCommand extends HyperfCommand
// 上报复诊
try {
if ($report_regulatory['is_further_consult'] == 1){
//检测是否为抄方订单
$transferInquiryOrder = $this->checkTransferInquiryOrder($order_inquiry);
if ($report_regulatory['is_further_consult'] == 1 && $transferInquiryOrder){
if ($report_regulatory['report_further_consult_status'] != 1 && $report_regulatory['report_further_consult_int'] < 5) {
$this->line("上报复诊");
@@ -318,7 +322,16 @@ class ReportRegulatoryCommand extends HyperfCommand
$this->line("信息:订单未取消的未完成订单,不执行");
return false;
}
return true;
}
/**
* 检测抄方订单
* @param array|object $order_inquiry 问诊订单数据
* @return bool true:可执行 false:不可执行
*/
private function checkTransferInquiryOrder(array|object $order_inquiry): bool
{
//判断该问诊是否为抄方
if(!empty($order_inquiry['transfer_doctor_id'])){
$this->line("信息:该问诊为抄方类型,不执行");