wupengfei há 2 anos atrás
pai
commit
f63d33cc8a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      application/order/controller/WashOrder.php

+ 1 - 1
application/order/controller/WashOrder.php

@@ -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')];