This commit is contained in:
2023-04-12 14:38:47 +08:00
parent 189dc54d55
commit 66df9d1548
6 changed files with 85 additions and 44 deletions
+3 -5
View File
@@ -604,7 +604,7 @@ class OrderPrescriptionService extends BaseService
// 获取商品订单列表数据
$params = array();
$params['order_inquiry_id'] = $order_prescription['order_inquiry_id'];
$params['order_product_id'] = $order_product['order_product_id'];
$order_product_item = OrderProductItem::getList($params);
if (empty($order_product_item)) {
throw new BusinessException("上报处方平台失败:商品订单列表数据错误");
@@ -837,12 +837,10 @@ class OrderPrescriptionService extends BaseService
$result = $Prescription->reportPrescription($arg);
if ($result['resultCode'] != "1000"){
if(!empty($result['resultDesc'])){
Log::getInstance()->info("上报处方平台失败:" .$result['resultDesc']);
return false;
throw new BusinessException("上报处方平台失败:" .$result['resultDesc']);
}
Log::getInstance()->info("上报处方平台失败:操作编码:" . $result['resultCode']);
return false;
throw new BusinessException("上报处方平台失败:操作编码:" . $result['resultCode']);
}
return true;