通过UpdateWrapper修改指定的列
update 时传入null 是关键
重点语句:updateWrapper.set("SESSION_KEY", "abc");
this.mapper.update(null, wrapperUpdate);
使用版本:3.0.4
使用场景:
UpdateWrapper updateWrapper = new UpdateWrapper();
updateWrapper.eq("ID", 0);
updateWrapper.set("SESSION_KEY", "abc");
baseMapper.update(null, updateWrapper);
————————————————
版权声明:本文为CSDN博主「周小囧」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_31614235/article/details/111902262
https://blog.csdn.net/Mr_ZhangAdd/article/details/84257225
https://www.jianshu.com/p/5eaf651a0e08