随笔分类 -  Mybatis

摘要:终极推荐方式: UpdateWrapper<SkuDO> wrapper = new UpdateWrapper<>(); wrapper.lambda() .set(Objects.isNull(dto.getWeights()), SkuDO::getWeights, null) .set(Ob 阅读全文
posted @ 2025-11-04 17:15 下午喝什么茶 阅读(245) 评论(0) 推荐(0)
摘要:如图:show me the code 参考: https://mp.baomidou.com/guide/wrapper.html#or 扩展:一般遇到这种查询需求,in和or都可以实现,比如上面的查询sql也可以写成:select * from table where xxx = ? and c 阅读全文
posted @ 2020-07-23 19:49 下午喝什么茶 阅读(7190) 评论(0) 推荐(1)