Fix salvataggio viaggi senza cod forn trasp
This commit is contained in:
@@ -53,6 +53,7 @@ public class ViaggiService {
|
|||||||
|
|
||||||
List<CreaViaggioDTO.PedanaDTO> pedane = creaViaggioDTO.getPedane();
|
List<CreaViaggioDTO.PedanaDTO> pedane = creaViaggioDTO.getPedane();
|
||||||
|
|
||||||
|
if (!UtilityString.isNullOrEmpty(viaggio.getCodFornTrasp())) {
|
||||||
String sql = Query.format(
|
String sql = Query.format(
|
||||||
"SELECT gtb_anag.cod_anag,\n" +
|
"SELECT gtb_anag.cod_anag,\n" +
|
||||||
" gtb_anag.rag_soc\n" +
|
" gtb_anag.rag_soc\n" +
|
||||||
@@ -123,6 +124,7 @@ public class ViaggiService {
|
|||||||
if (dtbDoct.getOperation() != null) {
|
if (dtbDoct.getOperation() != null) {
|
||||||
entityProcessor.processEntity(dtbDoct, true, multiDBTransactionManager);
|
entityProcessor.processEntity(dtbDoct, true, multiDBTransactionManager);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
multiDBTransactionManager.commitAll();
|
multiDBTransactionManager.commitAll();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user