Interface UpdateByDifferMapper<T>

Type Parameters:
T - 泛型

public interface UpdateByDifferMapper<T>
差异更新
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    updateByDiffer(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:
      the int