|
@@ -37,7 +37,7 @@ class WashOrder extends Controller
|
|
|
$query = $this->_query($this->table);
|
|
|
$where = [];
|
|
|
$where[] = ['o.is_deleted','=',0];
|
|
|
- if($this->request->request('tel'))$where[]= ['o.phone','like','%'.$this->request->request('tel').'%'];
|
|
|
+ if($this->request->request('tel'))$where[]= ['o.phone|u.phone','like','%'.$this->request->request('tel').'%'];
|
|
|
if($this->request->request('user_name'))$where[]= ['u.name','like','%'.$this->request->request('user_name').'%'];
|
|
|
if($this->request->request('order_no')) $where[]= ['o.order_no','like','%'.$this->request->request('order_no').'%'];
|
|
|
if($this->request->request('pay_state',-1) > -1) $where[]= ['o.pay_state','=',$this->request->request('pay_state')];
|