mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
test: order by 函数测试。
This commit is contained in:
parent
7f014a4a2a
commit
54600f2af9
@ -17,6 +17,7 @@
|
|||||||
package com.mybatisflex.coretest;
|
package com.mybatisflex.coretest;
|
||||||
|
|
||||||
import com.mybatisflex.core.query.FunctionQueryColumn;
|
import com.mybatisflex.core.query.FunctionQueryColumn;
|
||||||
|
import com.mybatisflex.core.query.QueryOrderBy;
|
||||||
import com.mybatisflex.core.query.QueryWrapper;
|
import com.mybatisflex.core.query.QueryWrapper;
|
||||||
import com.mybatisflex.core.query.RawQueryColumn;
|
import com.mybatisflex.core.query.RawQueryColumn;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@ -74,4 +75,15 @@ public class FunctionSqlTest {
|
|||||||
System.out.println(sql);
|
System.out.println(sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test05() {
|
||||||
|
String sql = QueryWrapper.create()
|
||||||
|
.select()
|
||||||
|
.from(ACCOUNT)
|
||||||
|
.orderBy(new QueryOrderBy(rand(), ""))
|
||||||
|
.toSQL();
|
||||||
|
|
||||||
|
System.out.println(sql);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user