return lista;
}
public void riscontiFinanziariMutuoPianoIas(Mutuo mutuo) throws PianoIasException {
if(mutuo.getDataDecorrenza()==null){
throw new PianoIasException(messages.getMessage("gestionePratica.pianoIas.dataDecorrenzaMancante"));
}
try {
SimpleDateFormat f = new SimpleDateFormat("dd/MM/yyyy");
final StringBuffer call = new StringBuffer("{call RISCONTI_FINANZIARI_MUTUO(");
call.append("'").append(f.format(mutuo.getDataDecorrenza())).append("', ");
call.append("'01/01/1960', '31/12/2999', '").append(f.format(mutuo.getDataDecorrenza())).append("', ");
call.append("'31/12/2999', '").append(mutuo.getCodiceSocietaVeicolo()).append("', ");
call.append("null , null , null , null , null , null , ").append(mutuo.getNumeroMutuo()).append(", ");
call.append("'L' , 'PP')}");
getJdbcTemplate().execute(call.toString());
} catch (DataAccessException e) {
log.error("Errore nella chiamata alla procedura RISCONTI_FINANZIARI_MUTUO", e);
throw new PianoIasException(messages.getMessage("gestionePratica.pianoIas.erroreChiamata"));
} catch (Exception e) {
log.error("Errore nella chiamata alla procedura RISCONTI_FINANZIARI_MUTUO", e);
throw new PianoIasException(messages.getMessage("gestionePratica.pianoIas.erroreChiamata"));
}
}