作者 潘浩文
1 个管道 的构建 通过 耗费 1 秒

XIAOPAN

... ... @@ -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)
... ...