更新订单查询条件
This commit is contained in:
parent
b3d3c8c6ad
commit
38ca0eae9a
@ -195,6 +195,9 @@ class StoreOrderDao extends BaseDao
|
|||||||
->whereOr('user_phone','like',"%{$where['search']}%");
|
->whereOr('user_phone','like',"%{$where['search']}%");
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
->when(isset($where['order_search']) && $where['order_search'] !== '', function ($query) use ($where) {
|
||||||
|
$query->where('order_sn', 'like', '%' . $where['order_search'] . '%')->whereOr('user_phone', $where['order_search']);
|
||||||
|
})
|
||||||
->when(isset($where['group_order_sn']) && $where['group_order_sn'] !== '', function ($query) use ($where) {
|
->when(isset($where['group_order_sn']) && $where['group_order_sn'] !== '', function ($query) use ($where) {
|
||||||
$query->join('StoreGroupOrder GO','StoreOrder.group_order_id = GO.group_order_id')->where('group_order_sn',$where['group_order_sn']);
|
$query->join('StoreGroupOrder GO','StoreOrder.group_order_id = GO.group_order_id')->where('group_order_sn',$where['group_order_sn']);
|
||||||
})
|
})
|
||||||
|
@ -76,6 +76,7 @@ class StoreOrder extends BaseController
|
|||||||
}
|
}
|
||||||
$where['is_verify'] = $this->request->param('is_verify');
|
$where['is_verify'] = $this->request->param('is_verify');
|
||||||
$where['search'] = $this->request->param('store_name');
|
$where['search'] = $this->request->param('store_name');
|
||||||
|
$where['order_search'] = $this->request->param('search_info');
|
||||||
$where['mer_id'] = $merId;
|
$where['mer_id'] = $merId;
|
||||||
$where['is_del'] = 0;
|
$where['is_del'] = 0;
|
||||||
return app('json')->success($repository->merchantGetList($where, $page, $limit));
|
return app('json')->success($repository->merchantGetList($where, $page, $limit));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user