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

希望支持ognl #85

Open
Dlinw opened this issue Oct 19, 2023 · 3 comments
Open

希望支持ognl #85

Dlinw opened this issue Oct 19, 2023 · 3 comments

Comments

@Dlinw
Copy link

Dlinw commented Oct 19, 2023

希望支持ognl,这样也方便通过表达式获取值,比如当前用户

@troyzhxu
Copy link
Owner

你希望在 Bean Searcher 的什么地方使用 ognl, 能举个例子吗?

@Dlinw
Copy link
Author

Dlinw commented Jan 16, 2024

比如在@searchbean上的where中通过ognl来获取当前用户等信息做权限过滤,而非使用:value的传值方式(总感觉这样不优雅,还得专门去获取一般值设置一个变量)

@troyzhxu
Copy link
Owner

比如在@searchbean上的where中通过ognl来获取当前用户等信息做权限过滤,而非使用:value的传值方式(总感觉这样不优雅,还得专门去获取一般值设置一个变量)

把你的例子用代码展示一下呢?

@SearchBean(tables="...", where="...")

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