From 22d2cd3ec7fac4ab55f7884392cc4eafbf09cfe7 Mon Sep 17 00:00:00 2001 From: Suomm <1474983351@qq.com> Date: Tue, 4 Jul 2023 10:50:49 +0800 Subject: [PATCH] =?UTF-8?q?fixed=2034c9ba3=20from=20https://gitee.com/Suom?= =?UTF-8?q?m/mybatis-flex/pulls/105=20test:=20=E6=B5=8B=E8=AF=95=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mybatisflex/coretest/FunctionSqlTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mybatis-flex-core/src/test/java/com/mybatisflex/coretest/FunctionSqlTest.java b/mybatis-flex-core/src/test/java/com/mybatisflex/coretest/FunctionSqlTest.java index 62f73ccb..dc087f22 100644 --- a/mybatis-flex-core/src/test/java/com/mybatisflex/coretest/FunctionSqlTest.java +++ b/mybatis-flex-core/src/test/java/com/mybatisflex/coretest/FunctionSqlTest.java @@ -21,6 +21,7 @@ import com.mybatisflex.core.query.QueryWrapper; import com.mybatisflex.core.query.StringQueryColumn; import org.junit.Test; +import static com.mybatisflex.core.query.QueryMethods.*; import static com.mybatisflex.coretest.table.AccountTableDef.ACCOUNT; /** @@ -40,4 +41,15 @@ public class FunctionSqlTest { System.out.println(sql); } + @Test + public void test02() { + String sql = QueryWrapper.create() + .select(concatWs(string("abc"), ACCOUNT.USER_NAME, ACCOUNT.BIRTHDAY)) + .select(abs(number(-3))) + .from(ACCOUNT) + .where(not(ACCOUNT.ID.eq(1))) + .toSQL(); + System.out.println(sql); + } + } \ No newline at end of file