mybatis-plus中selectList用法
SELECT * FROM user_info WHERE tom_age = '20' and name='tom';
等同于
QueryWrapper<UserInfo> queryWrapper = new QueryWrapper(); queryWrapper.eq("tom_age", '20');//tom_age必须是数据库中的字段 queryWrapper.eq("name",'tom'); List<UserInfo> list = userInfoMapper.selectList(queryWrapper );