mybatis plus 条件查询

QueryWrapper queryWrapperSdf = new QueryWrapper<>();
queryWrapperSdf.lambda().eq(SdfsElements::getEntityidsdf, id).and(queryWrapper1 -> queryWrapper1.eq(SdfsElements::getNamesdf, "Gender").or().
eq(SdfsElements::getNamesdf, "EffectiveDate"));
mapSdfs = sdfsElementsMapper.selectMaps(queryWrapperSdf);

转载于:https://www.cnblogs.com/mayhh/p/11270175.html

你可能感兴趣的:(mybatis plus 条件查询)