fix: 抽取 oralce data类型数据格式化

This commit is contained in:
taojinlong 2023-02-20 12:58:32 +08:00
parent 2a350c61c7
commit dfadeb6dbb

View File

@ -916,6 +916,9 @@ public class OracleQueryProvider extends QueryProvider {
continue;
}
String originField = String.format(OracleConstants.KEYWORD_FIX, tableObj.getTableAlias(), x.getOriginName());
if(datasetTableField.getType().equals("DATE")){
originField = String.format(OracleConstants.TO_CHAR, originField, OracleConstants.DEFAULT_DATE_FORMAT);
}
String fieldAlias = String.format(OracleConstants.KEYWORD_TABLE, x.getOriginName());
xFields.add(getXFields(x, originField, fieldAlias));
}