...
|
...
|
@@ -35,9 +35,16 @@ class AdminOrderController extends AdminBaseController{ |
|
|
if (!empty($param['order_no'])){
|
|
|
$where['order_no']=['like','%'.$param['order_no'].'%'];
|
|
|
}
|
|
|
if (!empty($param['mobile'])){
|
|
|
$where['u.mobile']=['like','%'.$param['mobile'].'%'];
|
|
|
}
|
|
|
if (!empty($param['users_id'])){
|
|
|
$where['u.id']=$param['users_id'];
|
|
|
}
|
|
|
$where['state']=['in',[2,3]];
|
|
|
$Order=new OrderModel();
|
|
|
$data=$Order->alias('a')
|
|
|
->join('users u','a.users_id=u.id')
|
|
|
// ->field('a.*,b.serial_number,b.hospital')
|
|
|
// ->join('equipment b','a.eq_name=b.name')
|
|
|
->where($where)
|
...
|
...
|
|