done cleaning

This commit is contained in:
mynah
2020-01-20 18:19:38 -06:00
parent 7dfd107c04
commit f16d579996
19 changed files with 165 additions and 144 deletions

View File

@@ -1,26 +1,27 @@
select
curso.nombre as cname,
concat(lugar.municipio,', ',lugar.federativa) as place,
c.nombre as cname,
concat(l.municipio,', ',l.federativa) as place,
lugar.direccion as paddr,
lugar.observacion as pobs,
lugar.municipio as city,
tienda_evento.precio as cost,
tienda_evento.spay as spay,
case tienda_evento.promo_estado when 1 then coalesce(tienda_evento.promocion,"") else "" end as promo,
curso.temario as csubjects,
curso.servicios as cservices,
lugar.nombre as pname,
day(tienda_evento.fecha_inicio) as dini,
day(tienda_evento.fecha_fin) as dend,
month(tienda_evento.fecha_inicio) as mini,
month(tienda_evento.fecha_fin) as mend
l.direccion as paddr,
l.observacion as pobs,
l.municipio as city,
t.precio as cost,
t.spay as spay,
case t.promo_estado when 1 then coalesce(t.promocion,"") else "" end as promo,
c.descripcion as cdescription,
c.temario as csubjects,
c.servicios as cservices,
l.nombre as pname,
day(t.fecha_inicio) as dini,
day(t.fecha_fin) as dend,
month(t.fecha_inicio) as mini,
month(t.fecha_fin) as mend
from tienda_evento
inner join lugar on tienda_evento.lugar_id=lugar.id
inner join curso on tienda_evento.curso_id=curso.id
where tienda_evento.estado=1
and tienda_evento.id = ?
from curso_tienda as t
inner join curso_lugar as l on t.lugar_id=l.id
inner join curso as c on t.curso_id=c.id
where t.estado=1
and t.id = ?
;