List<String> list = new ArrayList<>(); QueryWrapper<Object> queryWrapper = new QueryWrapper<>(); queryWrapper.and(CollUtil.isNotEmpty(list), qw -> { list .forEach(flag -> { qw.or(qqw -> qqw.like("teeblld.COST_CHANGE_TYPE", flag)); }); return qw; }); 注意该mybatis-plus版本是3.1.2,往上更高是不需要return的。如3.4
标签:QueryWrapper,String,qw,list,plus,mybatis From: https://www.cnblogs.com/lboke/p/17146689.html