Finish Hotfix-1
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2024-12-11 17:58:40 +01:00

View File

@@ -65,9 +65,18 @@ public class ExchangeArticoliImportService {
allData.stream()
.filter(x -> x.getOperation() == OperationType.INSERT)
.forEach(x -> x.setOperation(OperationType.INSERT_OR_UPDATE));
.map(x -> (MtbAart) x)
.forEach(x -> x
.setFlagStato("A")
.setOperation(OperationType.INSERT_OR_UPDATE));
final Exception[] firstExceptionToThrow = {null};
allData.parallelStream()
.filter(x -> x.getOperation() == OperationType.DELETE)
.map(x -> (MtbAart) x)
.forEach(x -> x.setFlagStato("I")
.setOperation(OperationType.UPDATE));
final Exception[] firstExceptionToThrow = { null };
AtomicInteger importedCounter = new AtomicInteger();