This commit is contained in:
deiflaender 2022-03-28 11:51:17 +02:00
parent a53d11d7d9
commit 23799a9b71
2 changed files with 4 additions and 0 deletions

View File

@ -137,6 +137,7 @@ public class AnalyzeService {
return analyze(analyzeRequest);
}
log.info("Dictionary Version from redacrionLog {}, dossierDictionaryVersion {}", redactionLog.getDictionaryVersion(), redactionLog.getDossierDictionaryVersion());
DictionaryIncrement dictionaryIncrement = dictionaryService.getDictionaryIncrements(analyzeRequest.getDossierTemplateId(), new DictionaryVersion(redactionLog.getDictionaryVersion(), redactionLog.getDossierDictionaryVersion()), analyzeRequest.getDossierId());
long sectionsToReanalyseStartTime = System.currentTimeMillis();

View File

@ -61,6 +61,7 @@ public class DictionaryService {
dictionaryModels.forEach(dictionaryModel -> {
dictionaryModel.getEntries().forEach(dictionaryEntry -> {
if (dictionaryEntry.getVersion() > fromVersion.getDossierTemplateVersion()) {
log.info("Added {} because version dictionaryEntry.getVersion() {} > fromVersion.getDossierTemplateVersion() {}",dictionaryEntry.getValue(), dictionaryEntry.getVersion(),fromVersion.getDossierTemplateVersion());
newValues.add(new DictionaryIncrementValue(dictionaryEntry.getValue(), dictionaryModel.isCaseInsensitive()));
}
});
@ -71,6 +72,8 @@ public class DictionaryService {
dictionaryModels.forEach(dictionaryModel -> {
dictionaryModel.getEntries().forEach(dictionaryEntry -> {
if (dictionaryEntry.getVersion() > fromVersion.getDossierVersion()) {
log.info("Added {} because version dictionaryEntry.getVersion() {} > fromVersion.getDossierVersion() {}",dictionaryEntry.getValue(), dictionaryEntry.getVersion(),fromVersion.getDossierVersion());
newValues.add(new DictionaryIncrementValue(dictionaryEntry.getValue(), dictionaryModel.isCaseInsensitive()));
}
});