updateByExample与updateByExampleSelective的区别
时间:2019-08-23 12:03:55
收藏:0
阅读:590
updateByExample:
对注入的字段全部更新,为null的字段更新为null。
updateByExampleSelective:
对字段进行判断再更新,如果更新的字段中有null,忽略更新该字段,该字段还是以前的值。
对注入的字段全部更新,为null的字段更新为null。
updateByExampleSelective:
对字段进行判断再更新,如果更新的字段中有null,忽略更新该字段,该字段还是以前的值。
原文:https://blog.51cto.com/13678728/2431888
评论(0)