mybatis plus 条件查询

条件查询
QueryWrapper<SdfsElements> 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);



in查询
String[] strs=entityKey.split(",");
//将字符串数组转换成集合
List list= Arrays.asList(strs);
List<BlackList> list1 = blackListService.list(new QueryWrapper<BlackList>().lambda().in(BlackList::getObjKey, list));
posted on 2019-07-30 15:10  794536524  阅读(32021)  评论(0编辑  收藏  举报