if (CollectionUtils.isNotEmpty(request.getEventLabels())) {
queryWrapper.and(qw -> {
for (int i = 0; i < request.getEventLabels().size(); i++) {
if (i > 0) {
qw.or();
}
qw.apply("FIND_IN_SET({0}, label_str)", request.getEventLabels().get(i));
}
});
}
MyBatis-利用LambdaQueryWrapper 写in 字符串字段查询
最新推荐文章于 2024-07-10 14:44:22 发布