|
@@ -94,20 +94,20 @@ public interface BaseService<T> extends IService<T> {
|
|
|
}
|
|
|
|
|
|
|
|
|
- default long count(Consumer<IWrapper<T>> consumer) {
|
|
|
- return count(IWrapper.<T>getWrapper().func(consumer));
|
|
|
+ default long count(Consumer<LambdaQueryWrapper<T>> consumer) {
|
|
|
+ return count(Wrappers.<T>lambdaQuery().func(consumer));
|
|
|
}
|
|
|
|
|
|
- default T getOne(Consumer<IWrapper<T>> consumer) {
|
|
|
- return getOne(IWrapper.<T>getWrapper().func(consumer).last("limit 1"));
|
|
|
+ default T getOne(Consumer<LambdaQueryWrapper<T>> consumer) {
|
|
|
+ return getOne(Wrappers.<T>lambdaQuery().func(consumer).last("limit 1"));
|
|
|
}
|
|
|
|
|
|
- default List<T> list(Consumer<IWrapper<T>> consumer) {
|
|
|
- return list(IWrapper.<T>getWrapper().func(consumer));
|
|
|
+ default List<T> list(Consumer<LambdaQueryWrapper<T>> consumer) {
|
|
|
+ return list(Wrappers.<T>lambdaQuery().func(consumer));
|
|
|
}
|
|
|
|
|
|
- default List<Map<String, Object>> listMaps(Consumer<IWrapper<T>> consumer) {
|
|
|
- return listMaps(IWrapper.<T>getWrapper().func(consumer));
|
|
|
+ default List<Map<String, Object>> listMaps(Consumer<LambdaQueryWrapper<T>> consumer) {
|
|
|
+ return listMaps(Wrappers.<T>lambdaQuery().func(consumer));
|
|
|
}
|
|
|
|
|
|
default <V> List<V> listObj(SFunction<T, V> mapper, Consumer<LambdaQueryWrapper<T>> consumer) {
|