QueryWrapper<User> queryWrapper = new QueryWrapper<>(); if (!StringUtils.isEmpty(keyword)) { queryWrapper.and( wrapper -> wrapper.like("username", keyword).or().like("real_name", keyword) ); }
2022-04-01 02:06:57
QueryWrapper<User> queryWrapper = new QueryWrapper<>(); if (!StringUtils.isEmpty(keyword)) { queryWrapper.and( wrapper -> wrapper.like("username", keyword).or().like("real_name", keyword) ); }