Interface UpdateByDifferMapper<T>
- Type Parameters:
T- 不能为空
public interface UpdateByDifferMapper<T>
差异更新
- Since:
- 4.0.4
- Author:
- liuzh
-
Method Summary
Modifier and TypeMethodDescriptionintupdateByDiffer(T old, T newer) 根据 old 和 newer 进行差异更新,当对应某个字段值不同时才会更新
-
Method Details
-
updateByDiffer
@UpdateProvider(type=UpdateByDifferProvider.class, method="dynamicSQL") int updateByDiffer(@Param("old") T old, @Param("newer") T newer) 根据 old 和 newer 进行差异更新,当对应某个字段值不同时才会更新- Parameters:
old-newer-- Returns:
-