Reposiciones

This commit is contained in:
2023-09-05 18:53:27 +00:00
parent 2479bc4574
commit 0e400cb745
5 changed files with 88 additions and 39 deletions

View File

@@ -68,7 +68,7 @@ try {
comentario,
registro_fecha_justificacion,
profesor.profesor_id, profesor_nombre, profesor_clave, profesor_correo,
materia, carrera, horarios.facultad_id, facultad, nivel, horario_hora, horario_fin, horario_grupo, salon,
materia, carrera, horarios.facultad_id, facultad, nivel, horario_hora, horario_fin, horario_grupo, horarios.salon,
fechas.registro_fecha_ideal,
estado_supervisor.estado_supervisor_id as estado_supervisor_id,
estado_supervisor.nombre as nombre,
@@ -78,12 +78,18 @@ try {
justificador.usuario_clave as justificador_clave,
facultad.facultad_nombre as justificador_facultad,
rol.rol_titulo as justificador_rol,
registro.reposicion_id,
reposicion_fecha,
reposicion_hora,
salon_reposicion.salon as reposicion_salon,
CASE WHEN registro_retardo THEN 'warning' ELSE 'primary' END as color
FROM horarios
JOIN fechas using (horario_id)
JOIN horario_profesor using (horario_id)
JOIN profesor using (profesor_id)
LEFT JOIN registro USING (horario_id, registro_fecha_ideal, profesor_id)
LEFT JOIN reposicion USING (reposicion_id)
LEFT JOIN salon as salon_reposicion ON salon_reposicion.salon_id = reposicion.salon_id
join estado_supervisor ON estado_supervisor.estado_supervisor_id = COALESCE(registro.estado_supervisor_id, 0)
LEFT JOIN USUARIO ON USUARIO.usuario_id = REGISTRO.supervisor_id
LEFT JOIN USUARIO JUSTIFICADOR ON JUSTIFICADOR.usuario_id = REGISTRO.justificador_id