修改新增家庭成员返回数据类型
This commit is contained in:
@@ -8,6 +8,8 @@ use App\Constants\HttpEnumCode;
|
||||
use App\Exception\BusinessException;
|
||||
use App\Model\DoctorInquiryTime;
|
||||
use App\Model\OrderPrescriptionProduct;
|
||||
use App\Model\OrderProduct;
|
||||
use App\Model\OrderProductItem;
|
||||
use App\Model\UserCaCert;
|
||||
use App\Model\OrderInquiry;
|
||||
use App\Model\OrderPrescription;
|
||||
@@ -40,9 +42,8 @@ class TestController extends AbstractController
|
||||
// $this->test_11();
|
||||
// $this->test_5();
|
||||
// $this->test_1();
|
||||
// $this->test_11();
|
||||
$this->test_11();
|
||||
// $this->test_12();
|
||||
$this->test_13();
|
||||
}
|
||||
|
||||
// 获取云证书-首次
|
||||
@@ -576,7 +577,7 @@ class TestController extends AbstractController
|
||||
}
|
||||
|
||||
public function test_11(){
|
||||
$order_prescription_id = "";
|
||||
$order_prescription_id = "501751534291394561";
|
||||
|
||||
// 获取处方数据
|
||||
$params = array();
|
||||
@@ -594,11 +595,37 @@ class TestController extends AbstractController
|
||||
throw new BusinessException("处方药品数据错误");
|
||||
}
|
||||
|
||||
// 获取问诊订单数据
|
||||
$params = array();
|
||||
$params['order_inquiry_id'] = $order_prescription['order_inquiry_id'];
|
||||
$order_inquiry = OrderInquiry::getOne($params);
|
||||
if (empty($order_inquiry)) {
|
||||
throw new BusinessException("处方药品数据错误");
|
||||
}
|
||||
|
||||
// 获取商品订单数据
|
||||
$params = array();
|
||||
$params['order_inquiry_id'] = $order_prescription['order_inquiry_id'];
|
||||
$order_product = OrderProduct::getOne($params);
|
||||
if (empty($order_product)) {
|
||||
throw new BusinessException("处方药品数据错误");
|
||||
}
|
||||
|
||||
// 获取商品订单数据
|
||||
$params = array();
|
||||
$params['order_inquiry_id'] = $order_prescription['order_inquiry_id'];
|
||||
$order_product_item = OrderProductItem::getList($params);
|
||||
if (empty($order_product_item)) {
|
||||
throw new BusinessException("处方药品数据错误");
|
||||
}
|
||||
|
||||
$OrderPrescriptionService = new OrderPrescriptionService();
|
||||
$result = $OrderPrescriptionService->reportPrescription();
|
||||
$result = $OrderPrescriptionService->reportPrescription(
|
||||
$order_inquiry->toArray(),
|
||||
$order_prescription->toArray(),
|
||||
$order_prescription_product->toArray(),
|
||||
$order_product->toArray()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user