Browse Source

ultimas correciones y validaciones

main
mramirezg 8 months ago
parent
commit
ab248f39ae
2 changed files with 46 additions and 46 deletions
  1. +45
    -45
      src/main/java/mx/gob/jumapacelaya/Services/GuardarSolicitudService.java
  2. +1
    -1
      src/main/java/mx/gob/jumapacelaya/Services/PredioService.java

+ 45
- 45
src/main/java/mx/gob/jumapacelaya/Services/GuardarSolicitudService.java View File

@ -52,54 +52,54 @@ public class GuardarSolicitudService {
logger.info(procedureCall);
jdbcTemplate.execute((Connection connection) -> {
try (CallableStatement callableStatement = connection.prepareCall(procedureCall)) {
// Asignar los parámetros de manera correcta
jdbcTemplate.execute((Connection connection) -> {
try (CallableStatement callableStatement = connection.prepareCall(procedureCall)) {
// Asignar los parámetros de manera correcta
/*
logger.info("p_Predio: "+pPredioID);
logger.info("p_Detdesc: "+pDetDesc);
callableStatement.setLong("p_Predio", pPredioID); // ID del predio
callableStatement.setString("p_Tipo", pTiposolicitud); // Tipo de solicitud
callableStatement.setString("p_Solicitante", pNombreSolicitante); // Solicitante
callableStatement.setString("p_Detdesc", pDetDesc); // Detalles de descuento
*/
/*
callableStatement.setLong(1, predioId); // ID del predio
callableStatement.setString(2, tipoSolicitud); // Tipo de solicitud
callableStatement.setString(3, nombreSolicitante); // Solicitante
callableStatement.setString(4, parentesco); // Parentesco
callableStatement.setString(5, tipoIdentificacion); // Tipo de identificación
callableStatement.setString(6, numIdentificacion); // Número de identificación
callableStatement.setString(7, firma); // Firma digital
callableStatement.setString(8, usuarioId); // Usuario ID
callableStatement.setString(9, email); // Correo electrónico
callableStatement.setString(10, "31/12/" + LocalDate.now().getYear() + " 23:59:59"); // Fecha de vigencia
callableStatement.setString(11, estado); // Estado
callableStatement.setString(12, detdesc); // Detalles de descuento
callableStatement.setString(13, detCalif); // Detalles de cálculos // Detalles de cálculos
*/
/*
logger.info("p_Predio: "+pPredioID);
logger.info("p_Detdesc: "+pDetDesc);
callableStatement.setLong("p_Predio", pPredioID); // ID del predio
callableStatement.setString("p_Tipo", pTiposolicitud); // Tipo de solicitud
callableStatement.setString("p_Solicitante", pNombreSolicitante); // Solicitante
callableStatement.setString("p_Detdesc", pDetDesc); // Detalles de descuento
*/
/*
callableStatement.setLong(1, predioId); // ID del predio
callableStatement.setString(2, tipoSolicitud); // Tipo de solicitud
callableStatement.setString(3, nombreSolicitante); // Solicitante
callableStatement.setString(4, parentesco); // Parentesco
callableStatement.setString(5, tipoIdentificacion); // Tipo de identificación
callableStatement.setString(6, numIdentificacion); // Número de identificación
callableStatement.setString(7, firma); // Firma digital
callableStatement.setString(8, usuarioId); // Usuario ID
callableStatement.setString(9, email); // Correo electrónico
callableStatement.setString(10, "31/12/" + LocalDate.now().getYear() + " 23:59:59"); // Fecha de vigencia
callableStatement.setString(11, estado); // Estado
callableStatement.setString(12, detdesc); // Detalles de descuento
callableStatement.setString(13, detCalif); // Detalles de cálculos // Detalles de cálculos
*/
callableStatement.execute();
return true;
callableStatement.execute();
return true;
} catch (SQLException e) {
//e.printStackTrace();
Notification notify;
notify=new Notification();
Notification.show("Error al Guardar:"+e.getMessage());
return false;
}
catch (Exception e) {
//e.printStackTrace();
Notification notify;
notify=new Notification();
Notification.show("Error al Guardar:"+e.getMessage());
return false;
}
});
} catch (SQLException e) {
//e.printStackTrace();
Notification notify;
notify=new Notification();
Notification.show("Error al Guardar:"+e.getMessage());
return false;
}
catch (Exception e) {
//e.printStackTrace();
Notification notify;
notify=new Notification();
Notification.show("Error al Guardar:"+e.getMessage());
return false;
}
});
return false;
return false;
}
}

+ 1
- 1
src/main/java/mx/gob/jumapacelaya/Services/PredioService.java View File

@ -24,7 +24,7 @@ public class PredioService {
" fn_gettelefono(clienteid) telefono,\n" +
" p.coordx, p.coordy, p.zonafactid, p.serialmed, marcamedid||'-'||ma.descripcion marcamed, (decode(mo.descripcion,null,'Desconocido',modelomedid||'-'||mo.descripcion)) modelomed,\n" +
" edopredioid, e.nombre edopredio, usoid, u.nombre uso, actividadid, a.nombre actividad, \n" +
" regexp_substr(fn_get_tarifa(94291), '[^¬]+',1,1) tarifaid, regexp_substr(fn_get_tarifa(94291), '[^¬]+',1,2) tarifa\n " +
" regexp_substr(fn_get_tarifa(predioid), '[^¬]+',1,1) tarifaid, regexp_substr(fn_get_tarifa(predioid), '[^¬]+',1,2) tarifa\n " +
" from predios p\n" +
" left join clientes c using (clienteid)\n" +
" left join estadospredio e using(edopredioid)\n" +


Loading…
Cancel
Save