This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user