T - 不能为空public interface UpdateByConditionSelectiveMapper<T>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
updateByConditionSelective(T record,
Object condition)
根据Condition条件更新实体`record`包含的不是null的属性值
|
@UpdateProvider(type=ConditionProvider.class, method="dynamicSQL") @Options(useCache=false, useGeneratedKeys=false) int updateByConditionSelective(@Param(value="record") T record, @Param(value="example") Object condition)
record - condition - Copyright © 2017. All rights reserved.