updateByExample與updateByExampleSelective的區別

updateByExample:
        對注入的字段所有更新,爲null的字段更新爲null。
updateByExampleSelective:
        對字段進行判斷再更新,若是更新的字段中有null,忽略更新該字段,該字段仍是之前的值。ide

相關文章
相關標籤/搜索