sistemato controllo su colli
Some checks are pending
IntegryManagementSystem_Multi/pipeline/head Build queued...
Some checks are pending
IntegryManagementSystem_Multi/pipeline/head Build queued...
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user