Interface UpdateByPrimaryKeySelectiveForceMapper<T>
- Type Parameters:
T- 泛型
public interface UpdateByPrimaryKeySelectiveForceMapper<T>
通用Mapper接口, 非空字段强制更新
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescriptionintupdateByPrimaryKeySelectiveForce(T record, List<String> forceUpdateProperties) 根据主键更新属性不为null的值, 指定的属性(null值)会被强制更新
-
Method Details
-
updateByPrimaryKeySelectiveForce
@UpdateProvider(type=UpdateByPrimaryKeySelectiveForceProvider.class, method="dynamicSQL") int updateByPrimaryKeySelectiveForce(@Param("record") T record, @Param("forceUpdateProperties") List<String> forceUpdateProperties) 根据主键更新属性不为null的值, 指定的属性(null值)会被强制更新- Parameters:
record- 记录forceUpdateProperties- 属性- Returns:
- the int
-