xml-importer XMLImporterService error directory bug fixed
This commit is contained in:
parent
08243c6964
commit
57400e0b7b
1 changed files with 4 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ import org.springframework.stereotype.Service;
|
|||
import org.springframework.util.StopWatch;
|
||||
import ru.spcex.clearing.xml.importer.logic.data.ResultContainer;
|
||||
import ru.spcex.clearing.xml.importer.logic.data.enums.ETable;
|
||||
import ru.spcex.clearing.xml.importer.logic.data.enums.StageResult;
|
||||
import ru.spcex.clearing.xml.importer.logic.steps.ChangeDirOfFileStage;
|
||||
import ru.spcex.clearing.xml.importer.logic.steps.ImportToDB;
|
||||
import ru.spcex.clearing.xml.importer.logic.steps.ReadXMLFile;
|
||||
|
|
@ -98,7 +99,9 @@ public class XMLImporterService {
|
|||
StopWatch stopWatch = new StopWatch();
|
||||
stopWatch.start();
|
||||
task.setLastStageStatus(readXMLFile.process(task));
|
||||
task.setLastStageStatus(importToDB.process(task));
|
||||
if (!task.getLastStageStatus().equals(StageResult.ERROR)) {
|
||||
task.setLastStageStatus(importToDB.process(task));
|
||||
}
|
||||
task.setLastStageStatus(changeDirOfFileStage.process(task));
|
||||
stopWatch.stop();
|
||||
log.info("uuid {}. Task completed, result: {}, time working: {} ms",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue