feat(SQL): SQL模式下,datasetTableField的原字段名,取select field as new_field ...as后边的值

This commit is contained in:
junjie 2021-03-15 17:36:52 +08:00
parent 0bf906779e
commit 2756e73609

View File

@ -100,7 +100,7 @@ public class JdbcProvider extends DatasourceProvider {
String l = StringUtils.isNotEmpty(metaData.getColumnLabel(j + 1)) ? metaData.getColumnLabel(j + 1) : f;
String t = metaData.getColumnTypeName(j + 1);
TableFiled field = new TableFiled();
field.setFieldName(f);
field.setFieldName(l);
field.setRemarks(l);
field.setFieldType(t);
fieldList.add(field);