updateByExample:
对注入的字段全部更新,为null的字段更新为null。
updateByExampleSelective:
对字段进行判断再更新,如果更新的字段中有null,忽略更新该字段,该字段还是以前的值。
updateByExample与updateByExampleSelective的区别
最新推荐文章于 2024-10-14 16:42:05 发布
updateByExample:
对注入的字段全部更新,为null的字段更新为null。
updateByExampleSelective:
对字段进行判断再更新,如果更新的字段中有null,忽略更新该字段,该字段还是以前的值。