作者 sgj
1 个管道 的构建 通过 耗费 5 秒

修改订单排序顺序

@@ -41,7 +41,7 @@ class AdminOrderController extends AdminBaseController{ @@ -41,7 +41,7 @@ class AdminOrderController extends AdminBaseController{
41 // ->field('a.*,b.serial_number,b.hospital') 41 // ->field('a.*,b.serial_number,b.hospital')
42 // ->join('equipment b','a.eq_name=b.name') 42 // ->join('equipment b','a.eq_name=b.name')
43 ->where($where) 43 ->where($where)
44 - ->order('id','desc') 44 + ->order('end_time','desc')
45 ->paginate(10); 45 ->paginate(10);
46 $this->assign('data',$data); 46 $this->assign('data',$data);
47 $this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : ''); 47 $this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : '');