T - 实体类@RegisterMapper public interface DeleteByPrimaryKeyMapper<T>
| Modifier and Type | Method and Description |
|---|---|
int |
deleteByPrimaryKey(Serializable id)
根据主键id删除记录;如果数据库表支持"逻辑删除",则会生成 update 语句。
|
int |
deleteWithPrimaryKey(T condition)
根据主键id删除记录;如果数据库表支持"逻辑删除",则会生成 update 语句。
|
@DeleteProvider(type=DeleteMapperTemplate.class, method="dynamicSql") int deleteByPrimaryKey(Serializable id)
id - 主键idDeleteMapperTemplate.deleteByPrimaryKey(app.myoss.cloud.mybatis.table.TableInfo, org.apache.ibatis.mapping.MappedStatement)@DeleteProvider(type=DeleteMapperTemplate.class, method="dynamicSql") int deleteWithPrimaryKey(T condition)
condition - 主键idDeleteMapperTemplate.deleteWithPrimaryKey(app.myoss.cloud.mybatis.table.TableInfo, org.apache.ibatis.mapping.MappedStatement)Copyright © 2018–2022. All rights reserved.