|
|
@@ -297,4 +297,26 @@ class OrderHotelDao |
|
|
|
return Util::returnArrEr("将酒店订单从付款单下移除失败".$e->getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取主订单ID |
|
|
|
* @param $payment_order_id |
|
|
|
* @return array |
|
|
|
*/ |
|
|
|
public function getOrderMainIdByPayment($payment_order_id){ |
|
|
|
$subOrderModel = new OrderHotel(); |
|
|
|
try { |
|
|
|
$subOrderList = $subOrderModel->where(["payment_order_id" => $payment_order_id, "del_flag" => 0])->select()->toArray(); |
|
|
|
if (null == $subOrderList) { |
|
|
|
return []; |
|
|
|
} |
|
|
|
$id = []; |
|
|
|
foreach ($subOrderList as $val){ |
|
|
|
$id[] = $val['order_id']; |
|
|
|
} |
|
|
|
return array_unique($id); |
|
|
|
}catch (Exception $e) { |
|
|
|
return []; |
|
|
|
} |
|
|
|
} |
|
|
|
} |