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