🐛 Fixing a bug.生成页面字段排序无效问题

This commit is contained in:
luolin committed 2023-04-28 10:25:12 +08:00
1 parent c862514fe2
commit 0d129893cf
1 file changed
+2 -1
@@ -217,7 +217,8 @@ public class GeneratorServiceImpl implements GeneratorService {
// 获取字段列表
List<GenTableColumnEntity> fieldList = columnService.lambdaQuery()
.eq(GenTableColumnEntity::getDsName, table.getDsName())
.eq(GenTableColumnEntity::getTableName, table.getTableName()).list();
.eq(GenTableColumnEntity::getTableName, table.getTableName())
.orderByAsc(GenTableColumnEntity::getSort).list();
table.setFieldList(fieldList);
// 创建数据模型对象