search field add
This commit is contained in:
parent
efd54d59e8
commit
11c11ed7f7
@ -39,8 +39,8 @@ class LogisticsLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
public function setSearch(): array
|
||||
{
|
||||
return [
|
||||
'=' => ['order_id', 'order_sn', 'courier_id', 'shop_id', 'shop_name', 'shop_phone', 'shop_address', 'shop_long', 'shop_lat', 'user_id', 'user_name', 'user_phone', 'user_address', 'status', 'qh_time', 'ps_time', 'qx_time', 'user_take_code'],
|
||||
|
||||
'%like%' => ['order_sn','shop_name','shop_phone','shop_address','user_name','user_address','user_phone'],
|
||||
'=' => ['order_id', 'status', 'qh_time', 'ps_time', 'qx_time'],
|
||||
];
|
||||
}
|
||||
|
||||
@ -58,6 +58,7 @@ class LogisticsLists extends BaseAdminDataLists implements ListsSearchInterface
|
||||
{
|
||||
return Logistics::where($this->searchWhere)
|
||||
->field(['id', 'order_id', 'order_sn', 'courier_id', 'shop_id', 'shop_name', 'shop_phone', 'shop_address', 'shop_long', 'shop_lat', 'user_id', 'user_name', 'user_phone', 'user_address', 'status', 'qh_time', 'ps_time', 'qx_time', 'user_take_code'])
|
||||
->where($this->searchWhere)
|
||||
->limit($this->limitOffset, $this->limitLength)
|
||||
->order(['id' => 'desc'])
|
||||
->select()
|
||||
|
Loading…
x
Reference in New Issue
Block a user