mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
feat: 添加代码生成器 tableDef 字段排序。
This commit is contained in:
parent
7eddbbf972
commit
6267f4cb23
@ -114,6 +114,9 @@ public class Table {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public List<Column> getColumns() {
|
public List<Column> getColumns() {
|
||||||
|
// 生成字段排序
|
||||||
|
columns.sort(Comparator.comparingInt((Column c) -> c.getProperty().length())
|
||||||
|
.thenComparing(Column::getProperty));
|
||||||
return columns;
|
return columns;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user