@@ -342,6 +342,11 @@ public class GenTableColumnServiceImpl implements IGenTableColumnService {
}
- return listByTableIdList(Collections.singletonList(genTable.getId()));
+ List<GenTableColumn> columns = genTable.getColumns();
+ if (ObjectUtils.isEmpty(columns)) {
+ columns = listByTableIdList(Collections.singletonList(genTable.getId()));
+ }
+
+ return columns;