|
|
@@ -386,6 +386,9 @@ class OrderMainService |
|
|
|
if (!empty($param['supplier_id'])) { |
|
|
|
$where[] = "(b.supplier_id = {$param['supplier_id']} or c.supplier_id = {$param['supplier_id']})"; |
|
|
|
} |
|
|
|
if (!empty($param['customer_name'])) { |
|
|
|
$where[] = "(b.customer_name like '%{$param['customer_name']}%' or c.customer_name like '%{$param['customer_name']}%')"; |
|
|
|
} |
|
|
|
//子订单查询条件 离店时间 |
|
|
|
if (!empty($param['startOutDate'])) { |
|
|
|
$where[] = " c.check_out_date >= '{$param['startOutDate']} 00:00:00' "; |
|
|
|