Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大哥我抄你的出问题了 #2

Open
xdeng opened this issue Jan 3, 2015 · 1 comment
Open

大哥我抄你的出问题了 #2

xdeng opened this issue Jan 3, 2015 · 1 comment

Comments

@xdeng
Copy link

xdeng commented Jan 3, 2015

func (post *Post) GetPreAndNext() (pre, next *Post)

这个函数获取pre的时候 __lt 小于的时候 排序是从小排的

比如 当前是5 小于5的文章 限制3的话 顺序是 1 2 3 可能是我最近更新了 beego 和 mysql 的原因把。

@xdeng
Copy link
Author

xdeng commented Jan 3, 2015

补充一下 原来 __gt 也出问题了。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant