queryWrapper.and(wrapper -> {
// 拼接sql
wrapper
.like("user_name", name)
.or()
.like("user_admin_name",name);
});
where (user_id='1' and (user_name like '%111%' or user_admin_name like '%222%'))
标签:QueryWrapper,like,admin,wrapper,user,使用,name
From: https://www.cnblogs.com/wandoubaguo/p/17352028.html