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

使用MongoPaginate 分页时,查询数据为空则一直抛出异常 #35

Open
lmhaoye opened this issue Mar 18, 2017 · 3 comments
Open

Comments

@lmhaoye
Copy link

lmhaoye commented Mar 18, 2017

MongoPaginate line - 35
if (count > totalRow) { this.count = (int) totalRow; } if (this.count <= 0 || this.page <= 0 || this.page > totalPage) { throw new RuntimeException("MongPage tips: (づ ̄ 3 ̄)づ count or page is error !"); }
当 查询结果为空,赋值 this.count为空,始终抛出下面异常

@T-baby
Copy link
Owner

T-baby commented Mar 19, 2017

会在2.0调整这个判断机制。

@lmhaoye
Copy link
Author

lmhaoye commented Mar 19, 2017

另外修改时,传入对象,目前只有新版本只有replace了,replace是替换了document,而我只想传入一个想修改的对象进去,修改对应有值的属性,不更新数据库已存在但未传入的属性。

@T-baby
Copy link
Owner

T-baby commented Mar 19, 2017

这个的话我会考虑在2.0中尝试实现,您也可以fork分支后尝试自行实现。

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

2 participants