//手动设置为null字段
return update(material, Wrappers.lambdaUpdate()
.set(Material::getMaterialType1Id, material.getMaterialType1Id())
.set(Material::getMaterialType2Id, material.getMaterialType2Id())
.set(Material::getMaterialType3Id, material.getMaterialType3Id())
.set(Material::getMaterialType4Id, material.getMaterialType4Id())
.eq(Material::getId, material.getId()));
MybatisPlus修改空
最新推荐文章于 2024-05-07 13:40:28 发布