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

v3.8 新增 NotLike 运算符 #50

Closed
troyzhxu opened this issue Jun 14, 2022 · 1 comment
Closed

v3.8 新增 NotLike 运算符 #50

troyzhxu opened this issue Jun 14, 2022 · 1 comment
Labels

Comments

@troyzhxu
Copy link
Owner

troyzhxu commented Jun 14, 2022

用法:

Map<String, Object> params = MapUtils.builder()
    .field(User::getName, "张%").op(NotLike.class)
    .build();
List<User> users = beanSearcher.searchList(User.class, params);

生成的 SQL:

select * from user where name not like ?
-- 参数:'张%'
@troyzhxu troyzhxu added feature developing 开发中 testing 测试中 and removed developing 开发中 labels Jun 14, 2022
@troyzhxu troyzhxu removed the testing 测试中 label Jul 3, 2022
@troyzhxu
Copy link
Owner Author

troyzhxu commented Jul 3, 2022

已在 v3.8.0 中实现:https://github.com/ejlchina/bean-searcher/releases/tag/v3.8.0

@troyzhxu troyzhxu closed this as completed Jul 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant