mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 17:18:24 +08:00
remove: 删除 Relations 查询。
This commit is contained in:
parent
9018d2414c
commit
f44e4c138c
@ -147,22 +147,4 @@ public interface MapperModel<T> {
|
||||
return Optional.ofNullable(oneById());
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据实体类主键获取一条数据,并查询 {@code @Relation} 注解关联的内容。
|
||||
*
|
||||
* @return 数据
|
||||
*/
|
||||
default T oneWithRelationsById() {
|
||||
return baseMapper().selectOneWithRelationsById(pkValues());
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据实体类主键获取一条数据,并查询 {@code @Relation} 注解关联的内容,封装为 {@link Optional} 返回。
|
||||
*
|
||||
* @return 数据
|
||||
*/
|
||||
default Optional<T> oneWithRelationsByIdOpt() {
|
||||
return Optional.ofNullable(oneWithRelationsById());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user