updateByPrimaryKey与updateByPrimaryKeySelective

updateByPrimaryKeySelective只能更新不为空的字段,当原来有值,如果你想删除时则无法删除。

updateByPrimaryKey不仅可以更新部位空的字段,如果你想将原来存在的值删除也可以。

原文地址:https://www.cnblogs.com/zwh0910/p/15402821.html