正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
@@ -137,6 +137,7 @@ class CommentController extends AdminBaseController | @@ -137,6 +137,7 @@ class CommentController extends AdminBaseController | ||
137 | $list = DB::name($this->table_name) | 137 | $list = DB::name($this->table_name) |
138 | ->alias('c') | 138 | ->alias('c') |
139 | ->join('qnb_user u','u.id=c.teach_id') | 139 | ->join('qnb_user u','u.id=c.teach_id') |
140 | + ->order('create_time desc') | ||
140 | ->field('c.*') | 141 | ->field('c.*') |
141 | ->where($where) | 142 | ->where($where) |
142 | ->paginate(15); | 143 | ->paginate(15); |
@@ -175,6 +176,7 @@ class CommentController extends AdminBaseController | @@ -175,6 +176,7 @@ class CommentController extends AdminBaseController | ||
175 | ->alias('c') | 176 | ->alias('c') |
176 | ->join('qnb_user u','u.id=c.uid') | 177 | ->join('qnb_user u','u.id=c.uid') |
177 | ->field('c.*') | 178 | ->field('c.*') |
179 | + ->order('create_time desc') | ||
178 | ->where(['c.delete_time'=>0]) | 180 | ->where(['c.delete_time'=>0]) |
179 | ->paginate(15); | 181 | ->paginate(15); |
180 | 182 |
-
请 注册 或 登录 后发表评论