T - 实体类@RegisterMapper public interface UpdateByPrimaryKeyAllColumnMapper<T>
| Modifier and Type | Method and Description |
|---|---|
int |
updateByPrimaryKeyAllColumn(T record)
根据主键id更新记录,字段的值为 null 也会更新
|
@UpdateProvider(type=UpdateMapperTemplate.class, method="dynamicSql") int updateByPrimaryKeyAllColumn(T record)
record - 待更新的实体对象UpdateMapperTemplate.updateByPrimaryKeyAllColumn(app.myoss.cloud.mybatis.table.TableInfo, org.apache.ibatis.mapping.MappedStatement)Copyright © 2018–2020. All rights reserved.