修改消息分野

This commit is contained in:
2023-03-31 18:26:47 +08:00
parent 25cdfbc20a
commit d6ccd430e0
4 changed files with 50 additions and 64 deletions
+5 -19
View File
@@ -38,7 +38,8 @@ class TestController extends AbstractController
// $this->test_10();
// $this->test_11();
// $this->test_5();
$this->test_1();
// $this->test_1();
$this->test_11();
}
// 获取云证书-首次
@@ -526,24 +527,9 @@ class TestController extends AbstractController
}
public function test_11(){
// 获取处方关联疾病数据
$params = array();
$params['order_prescription_id'] = "500341310934036481";
$order_prescription_icd = OrderPrescriptionIcd::getOne($params);
if (empty($order_prescription_icd)){
throw new BusinessException("处方疾病数据错误");
}
dump($order_prescription_icd->toArray());
// 处理疾病数据
$icd_name = array_column($order_prescription_icd->toArray(),'icd_name');
if (!empty($icd_name)){
$icd_name = implode(';',$icd_name);
}else{
$icd_name = "";
}
dump($icd_name);
$oss = new Oss();
$prescription_pdf = $oss->getObjectToLocal("applet/prescription/500341310934036481.pdf","./runtime/test.pdf");
dump($prescription_pdf);
}
}