修改自动开具处方
This commit is contained in:
@@ -183,8 +183,9 @@ class AutoPharmacistCaVerifyDelayDirectConsumer extends ConsumerMessage
|
||||
}
|
||||
|
||||
// 药师/医院签章
|
||||
Log::getInstance("queue-AutoPharmacistCaVerify")->info("药师/医院签章");
|
||||
$OrderPrescriptionService = new OrderPrescriptionService();
|
||||
$prescription_open_result = $OrderPrescriptionService->openPrescription($data['order_prescription_id'],$user_pharmacist['user_id'],);
|
||||
$prescription_open_result = $OrderPrescriptionService->openPrescription($data['order_prescription_id'],$user_pharmacist['user_id']);
|
||||
if (empty($prescription_open_result['file_id'])){
|
||||
Db::rollBack();
|
||||
Log::getInstance("queue-AutoPharmacistCaVerify")->error("错误:处方开具失败");
|
||||
@@ -192,7 +193,8 @@ class AutoPharmacistCaVerifyDelayDirectConsumer extends ConsumerMessage
|
||||
}
|
||||
|
||||
// 下载医院的签章pdf并上传至oss
|
||||
$prescription_pdf_oss_path = $this->downCaPdfToOss($order_prescription, $user_doctor['user_id'],3,$prescription_open_result['file_id']);
|
||||
Log::getInstance("queue-AutoPharmacistCaVerify")->info("下载医院的签章pdf并上传至oss");
|
||||
$prescription_pdf_oss_path = $this->downCaPdfToOss($order_prescription, $user_pharmacist['user_id'],3,$prescription_open_result['file_id']);
|
||||
if (!$prescription_pdf_oss_path) {
|
||||
Db::rollBack();
|
||||
Log::getInstance("queue-AutoPharmacistCaVerify")->error("错误:" . $prescription_pdf_oss_path);
|
||||
@@ -203,7 +205,7 @@ class AutoPharmacistCaVerifyDelayDirectConsumer extends ConsumerMessage
|
||||
$this->modifyOrderPrescriptionFile($data['prescription_file_id'],$prescription_pdf_oss_path,$prescription_open_result['file_id']);
|
||||
|
||||
// 修改处方表为通过
|
||||
$this->modifyOrderPrescription($data['prescription_file_id'],1);
|
||||
$this->modifyOrderPrescription($data['order_prescription_id'],1);
|
||||
|
||||
Db::commit();
|
||||
Log::getInstance("queue-AutoPharmacistCaVerify")->info("成功");
|
||||
|
||||
Reference in New Issue
Block a user