Fix codMedep null in genera ord lav
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2024-11-12 12:34:45 +01:00
parent eea71a91a8
commit 724637d437

View File

@@ -83,7 +83,7 @@ public class GeneraOrdLav {
"where gtb_anag.cod_anag = %s",
codVdes, codAnag);
HashMap<String, Object> datiDest = UtilityDB.executeSimpleQueryOnlyFirstRow(conn, sql);
if (datiDest != null && datiDest.size() > 0) {
if (datiDest != null && !datiDest.isEmpty()) {
desCom = UtilityHashMap.getValueIfExists(datiDest, "descr_com");
isTerzista = UtilityHashMap.getValueIfExists(datiDest, "is_terzista");
}
@@ -93,6 +93,10 @@ public class GeneraOrdLav {
// Se c'è il check del terzista e il fornitore è un terzista allora
// bisognerà acquisire il deposito del terzista
codMdep = getDepositoTerzista(conn, codAnag, codVdes);
if (UtilityString.isNullOrEmpty(codMdep)) {
codMdep = dtbOrdt.getCodMdep();
}
}
}
// Verifica esistenza lavoratore associato all'utente connesso
@@ -1072,7 +1076,7 @@ public class GeneraOrdLav {
.setCodProdPri(ordT.getCodProd());
ordT.getDtbOrdSteps().add(ordStep);
return;
return; // F3678 SMSM301637A
}
/*