hsun 3 年之前
父節點
當前提交
520f40c25d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/tables/yb_community_question/model.go

+ 1 - 1
models/tables/yb_community_question/model.go

@@ -26,7 +26,7 @@ func GetPageListByCondition(where map[string]interface{}, pageIndex, pageSize in
 		return
 	}
 	offset := (pageIndex - 1) * pageSize
-	err = global.DEFAULT_MYSQL.Model(YbCommunityQuestion{}).Where(cond, vals...).Offset(offset).Limit(pageSize).Order("reply_time DESC").Scan(&list).Error
+	err = global.DEFAULT_MYSQL.Model(YbCommunityQuestion{}).Where(cond, vals...).Offset(offset).Limit(pageSize).Order("create_time DESC").Scan(&list).Error
 	return
 }