sistemato controllo su colli
Some checks are pending
IntegryManagementSystem_Multi/pipeline/head Build queued...

This commit is contained in:
2025-04-10 12:48:00 +02:00
parent d00246e903
commit a6aa1865ed

View File

@@ -601,7 +601,17 @@ public class DocumentRules extends QueryRules {
public static void completeDatiDocMtbColt(Connection connection, DtbDoct testata) throws SQLException {
List<MtbColt> colli = testata.getMtbColt().stream().filter(x -> x.getNativeSql() == null).collect(Collectors.toList());
for (MtbColt mtbColt: colli) {
boolean cancellaRifDoc = mtbColt.getCancellaRifDoc()==null? false : mtbColt.getCancellaRifDoc();
boolean cancellaRifDoc;
if ( mtbColt.getCancellaRifDoc()==null) {
if ( mtbColt.getOperation() == OperationType.DELETE) {
cancellaRifDoc = true;
mtbColt.setOperation(OperationType.UPDATE);
} else {
cancellaRifDoc = false;
}
} else {
cancellaRifDoc = mtbColt.getCancellaRifDoc();
}
if (mtbColt.getOperation() != OperationType.DELETE) {
String sql =
Query.format(