Commit 878a403e authored by Marco Descher's avatar Marco Descher 🏔
Browse files

Update mb-importer-mediportinsurer/src/task/MediportInsurerImporter.java

parent c966af71
......@@ -77,6 +77,7 @@ public class MediportInsurerImporter implements MisthiosTask {
public static List<IOrganization> importCSVFromStream(IModelService coreModelService, Logger logger,
IProgressMonitor monitor, InputStream csvInStream) {
monitor.beginTask("Importiere MediData Versichererliste", 100);
List<IOrganization> insurerList = new ArrayList<>();
try (BufferedReader reader = new BufferedReader(new InputStreamReader(csvInStream))) {
String line = "";
......@@ -116,6 +117,7 @@ public class MediportInsurerImporter implements MisthiosTask {
if (contactList != null && !contactList.isEmpty()) {
logger.warn("Kontakt [{}] existiert bereits. Wird nicht imporiert.",
org + " " + dept + ", " + street + ", " + city);
monitor.worked(1);
continue;
}
......@@ -157,6 +159,8 @@ public class MediportInsurerImporter implements MisthiosTask {
logger.error("Exception on execution", e);
return insurerList;
}
monitor.done();
return insurerList;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment