mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
feat: 可通过 IService 创建链式查询。
This commit is contained in:
parent
0d31f43337
commit
dae42af41a
@ -20,6 +20,7 @@ import com.mybatisflex.core.exception.FlexExceptions;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import com.mybatisflex.core.query.QueryCondition;
|
||||
import com.mybatisflex.core.query.QueryWrapper;
|
||||
import com.mybatisflex.core.query.QueryWrapperChain;
|
||||
import com.mybatisflex.core.row.Db;
|
||||
import com.mybatisflex.core.util.ClassUtil;
|
||||
import com.mybatisflex.core.util.CollectionUtil;
|
||||
@ -528,4 +529,8 @@ public interface IService<T> {
|
||||
return QueryWrapper.create();
|
||||
}
|
||||
|
||||
default QueryWrapperChain<T> queryChain() {
|
||||
return new QueryWrapperChain<>(getMapper());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user