parent
5c3c287bf4
commit
f99398ea12
2 changed files with 4 additions and 6 deletions
|
|
@ -45,7 +45,7 @@ public class ImportToDB extends Stage {
|
|||
Charset sourceCharset = Charset.forName(settings.getCommon().getEncodingSource());
|
||||
|
||||
try (InputStream is = new ByteArrayInputStream(source);
|
||||
SWTReader swtReader = new SWTReader(is, sourceCharset, resultContainer)) {
|
||||
SWTReader swtReader = new SWTReader(is, sourceCharset, resultContainer)) {
|
||||
AbstractTable table = mappingEnumTableObjectTable.get(currTable);
|
||||
table.setHazelcastService(hazelcastService);
|
||||
table.setFilename(resultContainer.getSwtFile().getName());
|
||||
|
|
@ -60,9 +60,7 @@ public class ImportToDB extends Stage {
|
|||
log.warn("record index {} null", counter);
|
||||
continue;
|
||||
}
|
||||
if (entity.length > 0) {
|
||||
table.injectEntity(table.getEntity(swtHeaderData, entity));
|
||||
}
|
||||
table.injectEntity(table.getEntity(swtHeaderData, entity));
|
||||
}
|
||||
kafkaMessenger.notifySystemIfNeeded(currTable, fileId);
|
||||
} catch (IOException exception) {
|
||||
|
|
|
|||
|
|
@ -108,12 +108,12 @@ S_DF_13
|
|||
String line = scanner.nextLine();
|
||||
String[] separetedLine = line.split(":");
|
||||
if (separetedLine.length < 5) {
|
||||
return new String[0];
|
||||
return null;
|
||||
}
|
||||
return separetedLine;
|
||||
case S_DF_13:
|
||||
default:
|
||||
return new String[0];
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue