修改新增家庭成员返回数据类型

This commit is contained in:
2023-04-04 14:48:16 +08:00
parent 4c23655a7c
commit bcc4d60170
3 changed files with 83 additions and 23 deletions
+31 -4
View File
@@ -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()
);
}