From df4349b7748a158f728507afde0cc14610e72487 Mon Sep 17 00:00:00 2001 From: wangyu <727842003@qq.com> Date: Wed, 1 Mar 2023 11:38:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E6=9C=BA=E5=88=B6=EF=BC=8Csql=E5=9C=A8=E7=94=9F=E5=91=BD?= =?UTF-8?q?=E5=91=A8=E6=9C=9F=E5=86=85=E4=BB=85=E6=9E=84=E5=BB=BA=E4=B8=80?= =?UTF-8?q?=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/group/flyfish/fluent/chain/SQLImpl.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fluent-sql-core/src/main/java/group/flyfish/fluent/chain/SQLImpl.java b/fluent-sql-core/src/main/java/group/flyfish/fluent/chain/SQLImpl.java index c79e2ac..32669f3 100644 --- a/fluent-sql-core/src/main/java/group/flyfish/fluent/chain/SQLImpl.java +++ b/fluent-sql-core/src/main/java/group/flyfish/fluent/chain/SQLImpl.java @@ -14,7 +14,6 @@ import group.flyfish.fluent.query.Parameterized; import group.flyfish.fluent.query.Query; import group.flyfish.fluent.update.Update; import group.flyfish.fluent.update.UpdateImpl; -import group.flyfish.fluent.utils.cache.CachedWrapper; import group.flyfish.fluent.utils.context.AliasComposite; import group.flyfish.fluent.utils.data.ParameterUtils; import group.flyfish.fluent.utils.sql.ConcatSegment; @@ -29,6 +28,8 @@ import java.util.List; import java.util.function.Supplier; import java.util.stream.Collectors; +import static group.flyfish.fluent.utils.cache.CachedWrapper.wrap; + /** * 查询工具类 * @@ -45,7 +46,7 @@ final class SQLImpl extends ConcatSegment implements SQLOperations, Pre private Class primaryClass; // sql实体提供者 - private final Supplier entity = CachedWrapper.wrap(this::entity); + private final Supplier entity = wrap(this::entity); /** * 绑定实现类 @@ -270,7 +271,7 @@ final class SQLImpl extends ConcatSegment implements SQLOperations, Pre * @return 转换结果 */ private SQLEntity entity() { - return SQLEntity.of(CachedWrapper.wrap(this::sql), this::parsedParameters); + return SQLEntity.of(wrap(this::sql), wrap(this::parsedParameters)); } }