T - 实体类@RegisterMapper public interface SelectOneMapper<T>
| Modifier and Type | Method and Description |
|---|---|
T |
selectOne(T condition)
根据条件查询匹配的实体对象,只能有一条查询结果记录,有多条查询结果则会抛出异常
|
@SelectProvider(type=SelectMapperTemplate.class, method="dynamicSql") T selectOne(T condition)
condition - 匹配的条件SelectMapperTemplate.selectOne(app.myoss.cloud.mybatis.table.TableInfo, org.apache.ibatis.mapping.MappedStatement)Copyright © 2018–2020. All rights reserved.