|
@@ -53,7 +53,7 @@ class AdminEquipmentController extends AdminBaseController{ |
|
@@ -53,7 +53,7 @@ class AdminEquipmentController extends AdminBaseController{ |
53
|
$where['create_time']=['between',[strtotime($param['start_time']),strtotime($param['end_time'])]];
|
53
|
$where['create_time']=['between',[strtotime($param['start_time']),strtotime($param['end_time'])]];
|
54
|
}
|
54
|
}
|
55
|
$Equipment=new EquipmentModel();
|
55
|
$Equipment=new EquipmentModel();
|
56
|
- $data=$Equipment->where($where)->paginate(10,false,['query'=>$param]);
|
56
|
+ $data=$Equipment->where($where)->order('create_time','desc')->paginate(10,false,['query'=>$param]);
|
57
|
$this->assign('data',$data);
|
57
|
$this->assign('data',$data);
|
58
|
$this->assign('name', isset($param['name']) ? $param['name'] : '');
|
58
|
$this->assign('name', isset($param['name']) ? $param['name'] : '');
|
59
|
$this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : '');
|
59
|
$this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : '');
|