Skip to content

在做关联查询的时候分页总条数和实际返回JAVA对象条数不匹配 #186

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

Closed
OTTOGH opened this issue Feb 2, 2018 · 1 comment

Comments

@OTTOGH
Copy link

OTTOGH commented Feb 2, 2018

我在做外键关联查询想获取一对多的对象时,SQL语句查询结果是多个的,最后返回的对象列表只有一个,导致我分页插件的total值一直不对。

@Seasheller
Copy link

Seasheller commented Feb 8, 2018

这个明确指出来了不支持,total对应的应该是sql执行的行数,sql 映射 中有 会将多条查询结果合成一个对象,所以total 值不对 链接在这儿 ; 这个插件没法做到那么智能的去计算 你哪几条结果会合并,合并之后剩几条。。。论看文档的重要性

@abel533 abel533 closed this as completed Mar 8, 2018
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

3 participants