LambdaQueryWrapper<Entity> ruleQuery = new LambdaQueryWrapper<>();
ruleQuery.eq(Entity::getCode, code);
ruleQuery.eq(Entity::getGoods, goodCode);
this.encapsulationCondition(ruleQuery);
public void encapsulationCondition(LambdaQueryWrapper<Entity> query) {
query.in(Entity::getStatus, "2", "3");
}
封装一个类似encapsulationCondition
的方法,把公共部分的条件封装起来
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…