作者 wangzhi

duanxin

@@ -78,7 +78,7 @@ class Yuyue extends Api @@ -78,7 +78,7 @@ class Yuyue extends Api
78 ->join('sun s', 's.id=y.sun_id') 78 ->join('sun s', 's.id=y.sun_id')
79 ->join('time t', 't.id=s.time_id') 79 ->join('time t', 't.id=s.time_id')
80 ->join('user u', 'u.id=y.user_id') 80 ->join('user u', 'u.id=y.user_id')
81 - ->order('s.time_id desc') 81 + ->order('y.sun_createtime desc,s.time_id desc')
82 ->page($Params['pages'], $Params['rows']) 82 ->page($Params['pages'], $Params['rows'])
83 ->field('y.id,p.avatar,p.title as plane_title,y.sun_createtime,t.title as time_title,y.user_id,y.teacher_id,y.status,y.type,y.no_price_type') 83 ->field('y.id,p.avatar,p.title as plane_title,y.sun_createtime,t.title as time_title,y.user_id,y.teacher_id,y.status,y.type,y.no_price_type')
84 ->select(); 84 ->select();