Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Base de Datos: PostgreSQL
La IP de la Base es 10.5.3.19
 
   Usuario: sistemas
   Password: Cabal2021***
 
Este usuario tiene granteado los permisos para el esquema “notificacionescabal”


-- Carries de SMS
select * from proveedor p ;

1 VOX AC
2 WALTON AC
3 INFOBIP AC

-- Fuentes de mensajes
select * from plataforma p ;

0 Pruebas A 1
4 DIMO A 3
1 Mi Cabal A 1
2 Daemon_SMS A 3
3 JPOS A 3

-- Resumen de mensajes enviados
select date(n.fecha_hora_envio), n.tipo_notificacion_id, p.descripcion, count(*) from notificacion n left join plataforma p on n.plataforma_id = p.id where date(n.fecha_hora_envio) >= date('2021-01-01') group by date(n.fecha_hora_envio), n.tipo_notificacion_id, p.descripcion order by date(n.fecha_hora_envio) desc ;


#Sentencia de ejemplo para asignar Proveedor SMS a una Plataforma
update plataforma set proveedor = 3 where id = 4;
commit;


Archivo de configuracion:
https://cabalgit.cabal.coop.py/nuevos-sistemas/configuration-repository/blob/master/notificaciones-cabal-prod.properties

  • No labels