|
|
@@ -155,9 +155,13 @@ class PaymentOrderService |
|
|
|
}else{ |
|
|
|
$hotel_where_arr[]=" b.id = 0 "; |
|
|
|
} |
|
|
|
if (!empty($param['sub_order_id'])) { |
|
|
|
$item_where_arr[] = " a.id = {$param["sub_order_id"]} "; |
|
|
|
$hotel_where_arr[]=" b.id = {$param['sub_order_id']} "; |
|
|
|
} |
|
|
|
if (!empty($param['order_id'])) { |
|
|
|
$item_where_arr[] = " a.id = {$param["order_id"]} "; |
|
|
|
$hotel_where_arr[]=" b.id = {$param['order_id']} "; |
|
|
|
$item_where_arr[] = " a.order_id = {$param["order_id"]} "; |
|
|
|
$hotel_where_arr[]=" b.order_id = {$param['order_id']} "; |
|
|
|
} |
|
|
|
if (!empty($param['supplier_id'])) { |
|
|
|
$item_where_arr[] = " d.supplier_id = {$param["supplier_id"]} "; |
|
|
@@ -168,8 +172,8 @@ class PaymentOrderService |
|
|
|
$hotel_where_arr[]=" b.confirm_status = {$param['confirm_status']} "; |
|
|
|
} |
|
|
|
if (!empty($param['customer_name'])) { |
|
|
|
$item_where_arr[] = " a.customer_name like %{$param["customer_name"]}% "; |
|
|
|
$hotel_where_arr[]=" b.customer_name like %{$param['customer_name']}% "; |
|
|
|
$item_where_arr[] = " a.customer_name like '%{$param["customer_name"]}%' "; |
|
|
|
$hotel_where_arr[]=" b.customer_name like '%{$param['customer_name']}%' "; |
|
|
|
} |
|
|
|
if (!empty($param['item_id'])) { |
|
|
|
$item_where_arr[] = " a.item_id = {$param["item_id"]} "; |
|
|
|