pretienda
This commit is contained in:
14
lib/Dojo/Model/Data/store/qIdStore.q
Executable file
14
lib/Dojo/Model/Data/store/qIdStore.q
Executable file
@@ -0,0 +1,14 @@
|
||||
select
|
||||
id,
|
||||
objeto,
|
||||
nombre,
|
||||
precio,
|
||||
subnombre,
|
||||
promocion,
|
||||
opcion,
|
||||
descripcion,
|
||||
imagenb as "imagen",
|
||||
existencia,
|
||||
entrega_id "entrega_id"
|
||||
from tienda where id=? and activo =1;
|
||||
|
||||
@@ -62,6 +62,11 @@ sub store{
|
||||
return _read ($data_path->child("/store/qStore.q")->slurp);
|
||||
}
|
||||
|
||||
sub store_id{
|
||||
my ($self,$id)=@_;
|
||||
return _read ($data_path->child("/store/qIdStore.q")->slurp,$id)->[0];
|
||||
}
|
||||
|
||||
sub _read{
|
||||
my ($q,@bind)=@_;
|
||||
my (@empty,$arr);
|
||||
|
||||
Reference in New Issue
Block a user