RED-8043 - Save section for manual redactions and unprocessed manual redactions
This commit is contained in:
parent
a299f99575
commit
c7c22bfd06
@ -41,6 +41,7 @@ public class AddRedactionPersistenceService {
|
||||
manualRedactionEntry.setPositions(convert(addRedactionRequest.getPositions()));
|
||||
manualRedactionEntry.setTypeId(addRedactionRequest.getDossierTemplateTypeId());
|
||||
manualRedactionEntry.setDictionaryEntryType(addRedactionRequest.getDictionaryEntryType());
|
||||
manualRedactionEntry.setSection(addRedactionRequest.getSection());
|
||||
|
||||
return manualRedactionRepository.saveAndFlush(manualRedactionEntry);
|
||||
|
||||
|
||||
@ -54,6 +54,9 @@ public class RedactionAnalysisResponseReceiver {
|
||||
manualRedactionEntry.setTextBefore(unprocessedManualEntity.getTextBefore());
|
||||
manualRedactionEntry.setTextAfter(unprocessedManualEntity.getTextAfter());
|
||||
manualRedactionEntry.setPositions(convertPositions(unprocessedManualEntity.getPositions()));
|
||||
if (manualRedactionEntry.getSection() == null ||!manualRedactionEntry.getSection().equals(unprocessedManualEntity.getSection())) {
|
||||
manualRedactionEntry.setSection(unprocessedManualEntity.getSection());
|
||||
}
|
||||
addRedactionPersistenceService.update(manualRedactionEntry);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user