正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -38,7 +38,7 @@ class AdminOrderController extends AdminBaseController{ | @@ -38,7 +38,7 @@ class AdminOrderController extends AdminBaseController{ | ||
38 | $where['a.order_no']=['like','%'.$param['order_no'].'%']; | 38 | $where['a.order_no']=['like','%'.$param['order_no'].'%']; |
39 | } | 39 | } |
40 | if (!empty($param['mobile'])){ | 40 | if (!empty($param['mobile'])){ |
41 | - $where['u.mobile']=['like','%'.$param['mobile'].'%']; | 41 | + $where['u.phone']=['like','%'.$param['mobile'].'%']; |
42 | } | 42 | } |
43 | if (!empty($param['users_id'])){ | 43 | if (!empty($param['users_id'])){ |
44 | $where['u.id']=$param['users_id']; | 44 | $where['u.id']=$param['users_id']; |
@@ -51,9 +51,9 @@ class AdminOrderController extends AdminBaseController{ | @@ -51,9 +51,9 @@ class AdminOrderController extends AdminBaseController{ | ||
51 | ->join('users u','a.users_id=u.id') | 51 | ->join('users u','a.users_id=u.id') |
52 | // ->field('a.*,b.serial_number,b.hospital') | 52 | // ->field('a.*,b.serial_number,b.hospital') |
53 | // ->join('equipment b','a.eq_name=b.name') | 53 | // ->join('equipment b','a.eq_name=b.name') |
54 | - ->field('a.*') | 54 | + ->field('a.*') |
55 | ->where($where) | 55 | ->where($where) |
56 | - ->order('a.end_time','desc') | 56 | + ->order('a.end_time','desc') |
57 | ->paginate(10); | 57 | ->paginate(10); |
58 | $this->assign('data',$data->appends($param)); | 58 | $this->assign('data',$data->appends($param)); |
59 | $this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : ''); | 59 | $this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : ''); |
-
请 注册 或 登录 后发表评论