List<SpecialTesting> specialTestingFour = baseMapper.selectList(Wrappers.<SpecialTesting>query().lambda()
.in(SpecialTesting::getId, listId));
以上述Demo为例,如何查询parentCode为1~9的数据????
方式一:
List<SpecialTesting> specialTestingFour = baseMapper.selectList(Wrappers.<SpecialTesting>query().lambda() .eq(SpecialTesting::getType, "parameter") .in(SpecialTesting::getId, listId) .or() // 开始or条件组 .eq(SpecialTesting::getParentCode, "1") .or().eq(SpecialTesting::getParentCode, "2") .or().eq(SpecialTesting::getParentCode, "3") .or().eq(SpecialTesting::getParentCode, "4") .or().eq(SpecialTesting::getParentCode, "5") .or().eq(SpecialTesting::getParentCode, "6") .or().eq(SpecialTesting::getParentCode, "7") .or().eq(SpecialTesting::getParentCode, "8") .or(