修改消息分野
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user