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