done cleaning
This commit is contained in:
@@ -1,14 +1,30 @@
|
||||
select
|
||||
id,
|
||||
objeto,
|
||||
nombre,
|
||||
precio,
|
||||
subnombre,
|
||||
promocion,
|
||||
opcion,
|
||||
descripcion,
|
||||
imagenb as "imagen",
|
||||
existencia,
|
||||
entrega_id "entrega_id"
|
||||
from tienda where id=? and activo =1;
|
||||
|
||||
select
|
||||
t.id as tid,
|
||||
c.nombre as nombre,
|
||||
c.subnombre as subnombre,
|
||||
c.descripcion as descripcion,
|
||||
c.maestro as maestro,
|
||||
c.imagen_a as cimga,
|
||||
c.imagen_b as cimgb,
|
||||
c.imagen_c as cimgc,
|
||||
day(t.fecha_inicio) as dini,
|
||||
month(t.fecha_inicio) as mini,
|
||||
day(t.fecha_fin) as dfin,
|
||||
month(t.fecha_fin) as mfin,
|
||||
t.precio as precio,
|
||||
t.promocion as promo,
|
||||
t.promo_estado as promo_estado,
|
||||
t.playera_estado as playera_estado,
|
||||
t.cupo as cupo,
|
||||
l.nombre as lnombre,
|
||||
l.federativa as federativa,
|
||||
l.pais as pais,
|
||||
l.municipio as municipio
|
||||
from curso_tienda as t
|
||||
join curso as c on c.id = t.curso_id
|
||||
join curso_lugar as l on l.id = t.lugar_id
|
||||
|
||||
where t.id=? and t.estado =1
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user