mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
fix: IService.getOne by condition
This commit is contained in:
parent
026300a1f0
commit
ce3a74e16d
@ -376,7 +376,7 @@ public interface IService<T> {
|
||||
* @return 查询结果数据
|
||||
*/
|
||||
default T getOne(QueryCondition condition) {
|
||||
return getOne(query().where(condition));
|
||||
return getOne(query().where(condition).limit(1));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user