随笔分类 - Mybatis
摘要:终极推荐方式: UpdateWrapper<SkuDO> wrapper = new UpdateWrapper<>(); wrapper.lambda() .set(Objects.isNull(dto.getWeights()), SkuDO::getWeights, null) .set(Ob
阅读全文
摘要:如图:show me the code 参考: https://mp.baomidou.com/guide/wrapper.html#or 扩展:一般遇到这种查询需求,in和or都可以实现,比如上面的查询sql也可以写成:select * from table where xxx = ? and c
阅读全文

浙公网安备 33010602011771号