feat: 添加代码生成器 tableDef 字段排序。

This commit is contained in:
Suomm 2023-07-11 20:32:58 +08:00
parent 7eddbbf972
commit 6267f4cb23

View File

@ -114,6 +114,9 @@ public class Table {
}
public List<Column> getColumns() {
// 生成字段排序
columns.sort(Comparator.comparingInt((Column c) -> c.getProperty().length())
.thenComparing(Column::getProperty));
return columns;
}