wupengfei 2 年之前
父节点
当前提交
f63d33cc8a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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')];