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.7 新增 OrLike 运算符 #38

Closed
troyzhxu opened this issue May 9, 2022 · 1 comment
Closed

v3.7 新增 OrLike 运算符 #38

troyzhxu opened this issue May 9, 2022 · 1 comment
Labels
Milestone

Comments

@troyzhxu
Copy link
Owner

troyzhxu commented May 9, 2022

用法(可以接收多个字段值):

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

生成的 SQL:

select * from user where (name like ? or name like ? or name like ?)
-- 参数:'张%', '李%', '王%'
@troyzhxu troyzhxu changed the title v3.7.0 新增 OrLike 运算符 v3.7 新增 OrLike 运算符 May 10, 2022
@troyzhxu troyzhxu added this to the v3.7.0 milestone May 10, 2022
@troyzhxu troyzhxu added developing 开发中 testing 测试中 and removed developing 开发中 labels May 22, 2022
@troyzhxu
Copy link
Owner Author

troyzhxu commented Jun 5, 2022

@troyzhxu troyzhxu closed this as completed Jun 5, 2022
@troyzhxu troyzhxu removed the testing 测试中 label Jun 5, 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