Fix su EXCHANGE

This commit is contained in:
2024-07-29 11:46:44 +02:00
parent 7a86247e12
commit 15ac3df1ce
2 changed files with 5 additions and 1 deletions

View File

@@ -1448,7 +1448,7 @@ public abstract class EntityBase implements Serializable, Cloneable, EntityInter
final Object value = fieldsWithoutIdentityAndNotNull.get(i - 1).getSecond();
insertBulkPs.setObject(i, value);
// traceSql = traceSql.replaceFirst("\\?", UtilityDB.valueToString(value).replaceAll("\\$", "\\\\\\$"));
traceSql = traceSql.replace("?", UtilityDB.valueToString(value));
}
logger.trace("Query tracing: {}", traceSql);

View File

@@ -20,6 +20,7 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.Collectors;
@SuppressWarnings("rawtypes")
@Service
@@ -65,6 +66,9 @@ public class ExchangePartiteMagazzinoImportService {
allData.forEach(x -> x.setOperation(x.getOperation() == OperationType.INSERT ? OperationType.INSERT_OR_UPDATE : x.getOperation()));
allData = allData.stream().filter(x -> x.getOperation() != OperationType.DELETE)
.collect(Collectors.toList());
final Exception[] firstExceptionToThrow = {null};
AtomicInteger importedCounter = new AtomicInteger();