修改获取患者问诊病例 增加检测项目
This commit is contained in:
parent
94116245f3
commit
d121c5ddb0
@ -8,11 +8,13 @@ use App\Amqp\Producer\CancelUnpayOrdersDelayDirectProducer;
|
||||
use App\Constants\DoctorTitleCode;
|
||||
use App\Constants\HttpEnumCode;
|
||||
use App\Exception\BusinessException;
|
||||
use App\Model\DetectionProject;
|
||||
use App\Model\DiseaseClass;
|
||||
use App\Model\DoctorInquiryConfig;
|
||||
use App\Model\Hospital;
|
||||
use App\Model\InquiryCaseProduct;
|
||||
use App\Model\MessageIm;
|
||||
use App\Model\OrderDetection;
|
||||
use App\Model\OrderEvaluation;
|
||||
use App\Model\OrderInquiry;
|
||||
use App\Model\OrderInquiryCase;
|
||||
@ -475,6 +477,28 @@ class InquiryService extends BaseService
|
||||
$order_inquiry_case['diagnose_images'] = $diagnose_images;
|
||||
}
|
||||
|
||||
// 检测项目
|
||||
$order_inquiry_case['detection_project'] = [];
|
||||
if ($order_inquiry['inquiry_type'] == 5){
|
||||
// 获取检测订单
|
||||
$params = array();
|
||||
$params['order_inquiry_id'] = $order_inquiry['order_inquiry_id'];
|
||||
$order_detection = OrderDetection::getOne($params);
|
||||
if (!empty($order_detection)){
|
||||
// 获取检测项目
|
||||
$params = array();
|
||||
$params['detection_project_id'] = $order_detection['detection_project_id'];
|
||||
$detection_project = DetectionProject::getOne($params);
|
||||
if (!empty($detection_project)){
|
||||
$order_inquiry_case['detection_project']['detection_project_name'] = $detection_project['detection_project_name']; // 检测项目名称
|
||||
$order_inquiry_case['detection_project']['detection_time'] = $order_detection['detection_time']; // 检测时间
|
||||
$order_inquiry_case['detection_project']['detection_link'] = ""; // 检测结果链接
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
return success($order_inquiry_case->toArray());
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user