作者 yangfu

评论时间排序修改

@@ -215,7 +215,7 @@ where user_id =? and (?=0 or id<?) @@ -215,7 +215,7 @@ where user_id =? and (?=0 or id<?)
215 )a left outer join chance b on a.source_id = b.id and source_type=1 215 )a left outer join chance b on a.source_id = b.id and source_type=1
216 )a left outer join chance_data b on a.source_id = b.chance_id and source_type = 1 216 )a left outer join chance_data b on a.source_id = b.chance_id and source_type = 1
217 )a left outer join comment b on a.source_id = b.id and a.source_type=2 217 )a left outer join comment b on a.source_id = b.id and a.source_type=2
218 -order by create_at desc 218 +order by comment_time desc
219 limit ?`) 219 limit ?`)
220 220
221 sqlCount := `select count(0) from comment 221 sqlCount := `select count(0) from comment