...
|
...
|
@@ -35,17 +35,11 @@ class AdminOrderController extends AdminBaseController{ |
|
|
if (!empty($param['order_no'])){
|
|
|
$where['order_no']=['like','%'.$param['order_no'].'%'];
|
|
|
}
|
|
|
if (!empty($param['hospital'])){
|
|
|
$where['hospital']=$param['hospital'];
|
|
|
}
|
|
|
|
|
|
if (!empty($param['start_number'])&&!empty($param['end_number'])){
|
|
|
$where['serial_number']=['between',[$param['start_number'],$param['end_number']]];
|
|
|
}
|
|
|
$Order=new OrderModel();
|
|
|
$data=$Order->alias('a')
|
|
|
->field('a.*,b.serial_number,b.hospital')
|
|
|
->join('equipment b','a.eq_name=b.name')
|
|
|
// ->field('a.*,b.serial_number,b.hospital')
|
|
|
// ->join('equipment b','a.eq_name=b.name')
|
|
|
->where($where)
|
|
|
->order('start_time','desc')
|
|
|
->paginate(10);
|
...
|
...
|
|