Fix su delete documents in EXCHANGE

This commit is contained in:
2024-09-30 17:19:55 +02:00
parent a961d0bb63
commit 1553c3b457

View File

@@ -163,8 +163,12 @@ public class ExchangeDocumentImportService {
singleUpdateImported(exchangeMultiDb.getPrimaryConnection(), (DtbDoct) dataToSave, useTempTable);
if (!document.getDtbDocr().isEmpty()) {
document.setOperation(OperationType.NO_OP);
entityProcessor.processEntity(document, true, true, ROSSOGARGANO_EXCHANGE_USER, internalMultiDb, requestDataDTO);
if (document.getOperation() != OperationType.DELETE) {
document.setOperation(OperationType.NO_OP);
entityProcessor.processEntity(document, true, true, ROSSOGARGANO_EXCHANGE_USER, internalMultiDb, requestDataDTO);
}
singleUpdateImported(exchangeMultiDb.getPrimaryConnection(), document.getDtbDocr(), useTempTable);
}