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

如何获取QueryWrapper中的参数名称 #6129

Open
lvjingang-git opened this issue May 1, 2024 · 3 comments
Open

如何获取QueryWrapper中的参数名称 #6129

lvjingang-git opened this issue May 1, 2024 · 3 comments

Comments

@lvjingang-git
Copy link

请详细描述需要增加的功能
比如我想通过条件中部分字段进行统一加解密处理,如何获取QueryWrapper中的条件参数名称呢?我看了下源码发现实际过程中AbstraceWrapper 构件条件时替换了参数名统一ew.xxx代替了,我不明白为何这样,不保留原始name或者给开个扩展也行 扩展AbstractWrapper 但是我目前发现无法扩展它

@miemieYaho
Copy link
Member

你有想过wrapper.eq("name","老王").or().eq("name","老李")的情况吗?

@lvjingang-git
Copy link
Author

你没理解我需求,我是想通过扩展AbstractWrapper时获取原始的 参数名称,这样可以处理是否对它做加密处理,现在原始拦截器拦截后发现 mybtais-plus丢失了where条件的原始 参数名称

@miemieYaho
Copy link
Member

所以wrapper.eq("name","老王").or().eq("name","老李")呢?

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