DEBUG log
This commit is contained in:
parent
8f54adc8e6
commit
7acea6c35c
@ -52,9 +52,11 @@ public class DictionaryService {
|
||||
public DictionaryIncrement getDictionaryIncrements(String dossierTemplateId, DictionaryVersion fromVersion, String dossierId) {
|
||||
|
||||
DictionaryVersion version = updateDictionary(dossierTemplateId, dossierId);
|
||||
log.info("From version is: {} and version is {}", fromVersion, version);
|
||||
|
||||
Set<DictionaryIncrementValue> newValues = new HashSet<>();
|
||||
List<DictionaryModel> dictionaryModels = dictionariesByDossierTemplate.get(dossierTemplateId).getDictionary();
|
||||
log.info("Entries" + dictionaryModels.stream().filter(dm -> dm.getType().equals("PII")).findFirst().get().getEntries());
|
||||
dictionaryModels.forEach(dictionaryModel -> {
|
||||
dictionaryModel.getEntries().forEach(dictionaryEntry -> {
|
||||
if (dictionaryEntry.getVersion() > fromVersion.getDossierTemplateVersion()) {
|
||||
@ -62,6 +64,7 @@ public class DictionaryService {
|
||||
}
|
||||
});
|
||||
});
|
||||
log.info("New Values are: " + newValues);
|
||||
|
||||
if(dictionariesByDossier.containsKey(dossierId)) {
|
||||
dictionaryModels = dictionariesByDossier.get(dossierId).getDictionary();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user