T - 实体类@RegisterMapper public interface UpdateByConditionMapper<T>
| Modifier and Type | Method and Description |
|---|---|
int |
updateByCondition(T record,
T condition)
根据条件更新记录(只会更新有值的字段)
|
@UpdateProvider(type=UpdateMapperTemplate.class, method="dynamicSql") int updateByCondition(@Param(value="record") T record, @Param(value="condition") T condition)
record - 待更新的实体对象condition - 匹配的条件UpdateMapperTemplate.updateByCondition(app.myoss.cloud.mybatis.table.TableInfo, org.apache.ibatis.mapping.MappedStatement)Copyright © 2018–2019. All rights reserved.