Actualizar las rutas
Some checks are pending
Deploy Pruebas / deploy (push) Waiting to run

This commit is contained in:
Alejandro Rosales
2024-10-08 11:39:24 -06:00
parent e366a75abc
commit fab36e0f9b
3 changed files with 4 additions and 28 deletions

View File

@@ -67,6 +67,7 @@ try {
[
'horarios' => $db->query(
"SELECT " . implode(', ', $columns) . <<<SQL
, NULL, NULL, 0 AS tipo
FROM horario_view
inner JOIN periodo using(periodo_id)
JOIN bloque_horario ON (bloque_horario.hora_inicio, bloque_horario.hora_fin) OVERLAPS (horario_view.horario_hora, horario_view.horario_hora + horario_view.duracion)
@@ -90,7 +91,7 @@ try {
// 'query' => $db->getLastQuery(),
'reposiciones' => $db->query(
'SELECT ' . implode(', ', $columns) . <<<SQL
, reposicion_hora + horario_view.duracion as reposicion_fin, registro_fecha_ideal
, reposicion_hora + horario_view.duracion as reposicion_fin, registro_fecha_ideal, 1 AS tipo
FROM horario_view
inner JOIN periodo using(periodo_id)
NATURAL JOIN registro