fixed: FunctionQueryColumn.as is not correct.

This commit is contained in:
开源海哥 2023-03-01 16:13:46 +08:00
parent 1e03a18e30
commit 0f0fb9d7ee

View File

@ -59,4 +59,10 @@ public class FunctionQueryColumn extends QueryColumn {
String sql = column.toSelectSql(queryTables, dialect); String sql = column.toSelectSql(queryTables, dialect);
return StringUtil.isBlank(sql) ? "" : fnName + "(" + sql + ")" + WrapperUtil.buildAsAlias(alias); return StringUtil.isBlank(sql) ? "" : fnName + "(" + sql + ")" + WrapperUtil.buildAsAlias(alias);
} }
@Override
public QueryColumn as(String alias) {
this.alias = alias;
return this;
}
} }