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));


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM