We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
使用自定义运算符替换Equal后,字段导致不写op=eq,不会出现在sql语句中,经排查,是 DefaultParamResolver#allowedOperator 方法里面写死了默认使用 FieldOps.Equal ,替换后,已经不存在Equal。导致字段不参与sql。
返回id为1的数据。
期望sql:select * from project where id=1;
返回全表数据。
实际sql:select * from project;
没有了
The text was updated successfully, but these errors were encountered:
9b269b2
v4.2.0 已修复:https://github.com/troyzhxu/bean-searcher/releases/tag/v4.2.0
Sorry, something went wrong.
No branches or pull requests
问题描述
使用自定义运算符替换Equal后,字段导致不写op=eq,不会出现在sql语句中,经排查,是 DefaultParamResolver#allowedOperator 方法里面写死了默认使用 FieldOps.Equal ,替换后,已经不存在Equal。导致字段不参与sql。
复现步骤
期望结果
返回id为1的数据。
期望sql:select * from project where id=1;
实际结果
返回全表数据。
实际sql:select * from project;
环境信息
补充说明
没有了
The text was updated successfully, but these errors were encountered: