fix: 抽取数据

This commit is contained in:
taojinlong 2022-06-26 00:04:21 +08:00
parent 72cdab3c06
commit 96a7a62062

View File

@ -1196,11 +1196,11 @@ public class ExtractDataService {
targetCharset = jdbcConfiguration.getTargetCharset();
}
if (StringUtils.isNotEmpty(charset)) {
tmp_code = code.replace("handleCharset", handleCharset.replace("Datasource_Charset", charset).replace("Target_Charset", targetCharset));
tmp_code = tmp_code.replace("handleCharset", handleCharset.replace("Datasource_Charset", charset).replace("Target_Charset", targetCharset));
}
} else {
Column_Fields = datasetTableFields.stream().map(DatasetTableField::getDataeaseName).collect(Collectors.joining(","));
tmp_code = code.replace("handleCharset", "");
tmp_code = tmp_code.replace("handleCharset", "");
}
if (datasourceType.equals(DatasourceTypes.excel)) {