Fix import mancante in ExchangeBancheImportService
This commit is contained in:
@@ -5,6 +5,8 @@ import it.integry.ems.expansion.RunnableThrowable;
|
||||
import it.integry.ems.javabeans.RequestDataDTO;
|
||||
import it.integry.ems.service.EntityProcessor;
|
||||
import it.integry.ems.sync.MultiDBTransaction.MultiDBTransactionManager;
|
||||
import it.integry.ems.system.exchange.service.structure.ExchangeImportDataManagerService;
|
||||
import it.integry.ems.system.exchange.service.structure.ExchangeImportSchemaManagerService;
|
||||
import it.integry.ems_model.base.EquatableEntityInterface;
|
||||
import it.integry.ems_model.entity.*;
|
||||
import it.integry.ems_model.types.OperationType;
|
||||
@@ -72,7 +74,7 @@ public class ExchangeBancheImportService {
|
||||
.runSync(GtbBancAzi.class, exchangeImportedDataBancheAzi, exchangeUpdatedDataBancheAzi);
|
||||
|
||||
List<EquatableEntityInterface> allDataBancheIntercode = exchangeImportDataManagerService
|
||||
.runSync(GtbBancAziIntercode.class, exchangeImportedDataBancheIntercode, exchangeUpdatedDataBancheIntercode );
|
||||
.runSync(GtbBancAziIntercode.class, exchangeImportedDataBancheIntercode, exchangeUpdatedDataBancheIntercode);
|
||||
|
||||
allDataBancheAzie.forEach(x -> x.setOperation(x.getOperation() == OperationType.INSERT ? OperationType.INSERT_OR_UPDATE : x.getOperation()));
|
||||
allDataBancheIntercode.forEach(x -> x.setOperation(x.getOperation() == OperationType.INSERT ? OperationType.INSERT_OR_UPDATE : x.getOperation()));
|
||||
@@ -89,7 +91,7 @@ public class ExchangeBancheImportService {
|
||||
.map(x -> (GtbBancAziIntercode) x)
|
||||
.filter(x -> finalAllBancheData.stream()
|
||||
.map(y -> (GtbBancAzi) y)
|
||||
.noneMatch(y -> x.getCodBancAzi().equalsIgnoreCase(y.getCodBancAzi()) ))
|
||||
.noneMatch(y -> x.getCodBancAzi().equalsIgnoreCase(y.getCodBancAzi())))
|
||||
.forEach(x -> {
|
||||
GtbBancAzi testata = new GtbBancAzi()
|
||||
.setCodBancAzi(x.getCodBancAzi());
|
||||
|
||||
Reference in New Issue
Block a user