修改im消息推送问题
This commit is contained in:
@@ -62,7 +62,7 @@ class DetectionCompleteDelayDirectConsumer extends ConsumerMessage
|
||||
return Result::DROP;
|
||||
}
|
||||
|
||||
if (!empty($order_detection['detection_result_pdf'])){
|
||||
if (empty($order_detection['detection_result_pdf'])){
|
||||
Log::getInstance("queue-DetectionComplete")->error("无检测报告数据");
|
||||
return Result::DROP;
|
||||
}
|
||||
@@ -173,9 +173,6 @@ class DetectionCompleteDelayDirectConsumer extends ConsumerMessage
|
||||
return Result::DROP;
|
||||
}
|
||||
|
||||
// 回填问诊订单id
|
||||
$order_detection['order_inquiry_id'] = $order_inquiry['order_inquiry_id'];
|
||||
|
||||
// 增加患者问诊病例
|
||||
$data = array();
|
||||
$data['user_id'] = $order_detection['user_id'];
|
||||
@@ -230,14 +227,20 @@ class DetectionCompleteDelayDirectConsumer extends ConsumerMessage
|
||||
);
|
||||
|
||||
// 发送IM消息-检测报告结果
|
||||
$imService->detectionTestReport(
|
||||
$order_detection,
|
||||
$user_doctor['user_id'],
|
||||
$order_detection['user_id'],
|
||||
$order_detection_case['detection_disease_class_names'],
|
||||
$detection_project['detection_project_name'],
|
||||
$order_inquiry['inquiry_type']
|
||||
);
|
||||
$data = [
|
||||
"order_inquiry_id" => $order_inquiry['order_inquiry_id'],
|
||||
"inquiry_type" => $order_inquiry['inquiry_type'],
|
||||
"detection_no" => $order_detection['detection_no'],
|
||||
"patient_name" => $order_detection['patient_name'],
|
||||
"patient_sex" => $order_detection['patient_sex'],
|
||||
"patient_age" => $order_detection['patient_age'],
|
||||
"detection_project_name" => $detection_project['detection_project_name'],
|
||||
"disease_class_names" => $order_detection_case['detection_disease_class_names'],
|
||||
"detection_result_pdf" => $order_detection['detection_result_pdf'],
|
||||
"patient_user_id" => $order_detection['user_id'],
|
||||
"doctor_user_id" => $user_doctor['user_id'],
|
||||
];
|
||||
$imService->detectionTestReport($data);
|
||||
|
||||
Db::commit();
|
||||
}catch (\Throwable $e){
|
||||
@@ -249,14 +252,20 @@ class DetectionCompleteDelayDirectConsumer extends ConsumerMessage
|
||||
// 发送消息
|
||||
try {
|
||||
// 发送IM消息-检测报告结果-文字
|
||||
$imService->detectionTestReportStr(
|
||||
$order_detection,
|
||||
$user_doctor['user_name'],
|
||||
$detection_project['detection_project_name'],
|
||||
$user_doctor['user_id'],
|
||||
$order_detection['user_id'],
|
||||
$order_inquiry['inquiry_type']
|
||||
);
|
||||
$data = [
|
||||
"order_inquiry_id" => $order_inquiry['order_inquiry_id'],
|
||||
"inquiry_type" => $order_inquiry['inquiry_type'],
|
||||
"detection_no" => $order_detection['detection_no'],
|
||||
"doctor_name" => $user_doctor['user_name'],
|
||||
"patient_name" => $order_detection['patient_name'],
|
||||
"patient_sex" => $order_detection['patient_sex'],
|
||||
"patient_age" => $order_detection['patient_age'],
|
||||
"detection_project_name" => $detection_project['detection_project_name'],
|
||||
"patient_user_id" => $order_detection['user_id'],
|
||||
"doctor_user_id" => $user_doctor['user_id'],
|
||||
];
|
||||
|
||||
$imService->detectionTestReportStr($data);
|
||||
|
||||
// 患者-新报告生成通知
|
||||
$MessagePush = new MessagePush($order_detection['user_id']);
|
||||
|
||||
Reference in New Issue
Block a user