public interface MapWithKeyMapper<T> extends BaseMapper<T>
| 限定符和类型 | 方法和说明 |
|---|---|
default <ID extends Serializable> |
map(Collection<ID> ids)
以主键为key的查询
|
default <ID extends Serializable> |
map(ID... ids)
以主键为key的查询
|
default <K,ID extends Serializable> |
mapWithKey(GetterFun<T,K> mapKey,
Collection<ID> ids)
根据多个id查询结果转map
|
default <K> Map<K,T> |
mapWithKey(GetterFun<T,K> mapKey,
Consumer<Where> consumer)
根据多个id查询结果转map
|
default <K,ID extends Serializable> |
mapWithKey(GetterFun<T,K> mapKey,
ID... ids)
根据多个id查询结果转map
|
getBasicMapper, getEntityType, getTableInfodefault <K,ID extends Serializable> Map<K,T> mapWithKey(GetterFun<T,K> mapKey, ID... ids)
K - map的key的类型mapKey - map的keyids - idsdefault <K,ID extends Serializable> Map<K,T> mapWithKey(GetterFun<T,K> mapKey, Collection<ID> ids)
K - map的key的类型mapKey - map的keyids - idsdefault <K> Map<K,T> mapWithKey(GetterFun<T,K> mapKey, Consumer<Where> consumer)
K - map的key的类型mapKey - map的keyconsumer - where consumerdefault <ID extends Serializable> Map<ID,T> map(ID... ids)
ID - ids - 指定IDdefault <ID extends Serializable> Map<ID,T> map(Collection<ID> ids)
ID - ids - 指定IDCopyright © 2025. All rights reserved.