Record - Example - public interface BaseMapper<Record,Example>
| 限定符和类型 | 方法和说明 |
|---|---|
long |
countByExample(Example example)
根据条件查询记录数量
|
int |
deleteByExample(Example example)
根据条件删除记录
|
int |
deleteByPrimaryKey(Object id)
根据主键删除记录
|
int |
insert(Record record)
插入记录
|
int |
insertSelective(Record record)
插入记录有效字段
|
List<Record> |
selectByExample(Example example)
根据条件查询记录
|
Record |
selectByPrimaryKey(Object id)
根据主键查询记录
|
int |
updateByExample(Record record,
Example example)
根据条件更新记录
|
int |
updateByExampleSelective(Record record,
Example example)
根据条件更新有效字段
|
int |
updateByPrimaryKey(Record record)
根据主键更新记录
|
int |
updateByPrimaryKeySelective(Record record)
根据主键更新记录有效字段
|
int insert(Record record)
record - int insertSelective(Record record)
record - int deleteByExample(Example example)
example - int deleteByPrimaryKey(Object id)
id - int updateByExampleSelective(@Param(value="record")
Record record,
@Param(value="example")
Example example)
record - example - int updateByExample(@Param(value="record")
Record record,
@Param(value="example")
Example example)
record - example - int updateByPrimaryKeySelective(Record record)
record - int updateByPrimaryKey(Record record)
record - long countByExample(Example example)
example - Copyright © 2022. All rights reserved.