Merge pull request #615 from ruansheng8/feat-orderBy

QueryOrderBy 新增获取字段属性方法
This commit is contained in:
Michael Yang 2025-11-26 16:16:57 +08:00 committed by GitHub
commit 9895a79a5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,6 +66,13 @@ public class QueryOrderBy implements CloneSupport<QueryOrderBy> {
return this; return this;
} }
public QueryColumn getQueryColumn() {
return this.queryColumn;
}
public String getOrderType() {
return this.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;