fix: IService.getOne by condition

This commit is contained in:
michael 2023-12-31 12:59:42 +08:00
parent 026300a1f0
commit ce3a74e16d

View File

@ -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));
}
/**