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

希望Example能加上excludeColumns #63

Closed
huzhenquan opened this issue Sep 19, 2022 · 3 comments
Closed

希望Example能加上excludeColumns #63

huzhenquan opened this issue Sep 19, 2022 · 3 comments

Comments

@huzhenquan
Copy link

从tkMapper转过来的,Example的excludeColumns是真的好用,希望能加上

@abel533
Copy link
Contributor

abel533 commented Sep 19, 2022

加。

@abel533 abel533 pinned this issue Sep 19, 2022
@huzhenquan
Copy link
Author

加。

谢谢大佬

@abel533
Copy link
Contributor

abel533 commented Nov 27, 2022

//设置查询id
example.selectColumns(User::getId);
//设置排除id,会覆盖前面的配置
example.excludeColumns(User::getId);

按照原来的接口,selectColumns 可以多次指定,会追加到一起,此次修改后,每次调用都会覆盖,不会追加。

调用排除时也会覆盖。如下面几个图:

image
image
image

@abel533 abel533 unpinned this issue Dec 17, 2022
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