mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
feat: 添加 QueryColumn 支持设置别名的构造器。
This commit is contained in:
parent
77cebf3778
commit
a15f892703
@ -62,6 +62,11 @@ public class QueryColumn implements CloneSupport<QueryColumn> {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public QueryColumn(TableDef tableDef, String name, String alias) {
|
||||
this(tableDef, name);
|
||||
this.alias = alias;
|
||||
}
|
||||
|
||||
public QueryColumn(QueryTable queryTable, String name) {
|
||||
SqlUtil.keepColumnSafely(name);
|
||||
this.table = queryTable;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user