T - 不能为空public interface SelectByPrimaryKeyMapper<T>
这是一个例子,自己扩展时可以参考
| 限定符和类型 | 方法和说明 |
|---|---|
T |
selectByPrimaryKey(Object key)
根据主键字段进行查询,方法参数必须包含完整的主键属性,查询条件使用等号
|
@SelectProvider(type=BaseSelectProvider.class, method="dynamicSQL") T selectByPrimaryKey(Object key)
key - Copyright © 2017. All rights reserved.