...
|
...
|
@@ -34,8 +34,9 @@ class AdminOrderController extends AdminBaseController{ |
|
|
$data=$Order->alias('a')
|
|
|
->field('a.*,b.serial_number,b.hospital')
|
|
|
->join('equipment b','a.mac_address=b.mac_address')
|
|
|
->paginate(10);
|
|
|
dump($data->toArray());
|
|
|
->paginate(10)->items(function ($item){
|
|
|
$item['time']=($item['end_time']-$item['start_time'])/3600;
|
|
|
});
|
|
|
$this->assign('data',$data);
|
|
|
return $this->fetch();
|
|
|
}
|
...
|
...
|
|