mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-06 16:48:24 +08:00
feat: -m query 新增OrderType获取方法
This commit is contained in:
parent
ed4f30cb2c
commit
ce23df8b09
@ -70,6 +70,10 @@ public class QueryOrderBy implements CloneSupport<QueryOrderBy> {
|
|||||||
return this.queryColumn;
|
return this.queryColumn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getOrderType() {
|
||||||
|
return orderType;
|
||||||
|
}
|
||||||
|
|
||||||
public String toSql(List<QueryTable> queryTables, IDialect dialect) {
|
public String toSql(List<QueryTable> queryTables, IDialect dialect) {
|
||||||
String sql = queryColumn.toConditionSql(queryTables, dialect) + orderType;
|
String sql = queryColumn.toConditionSql(queryTables, dialect) + orderType;
|
||||||
if (nullsFirst) {
|
if (nullsFirst) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user