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

修改订单排序顺序

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