floranet #2042

Merged
pako merged 14 commits from 6021-floranet into dev 2024-03-22 10:20:04 +00:00
3 changed files with 22 additions and 3 deletions
Showing only changes of commit 25f979156a - Show all commits

View File

@ -36,7 +36,7 @@ BEGIN
vLanded, vLanded,
vPostalCode, vPostalCode,
it.name, it.name,
i.image, CONCAT('https://cdn.verdnatura.es/image/catalog/1600x900/', i.image),
i.description i.description
FROM vn.item i FROM vn.item i
JOIN vn.itemType it ON it.id = i.typeFk JOIN vn.itemType it ON it.id = i.typeFk

View File

@ -1,9 +1,9 @@
DROP PROCEDURE IF EXISTS floranet.contact_Request; DROP PROCEDURE IF EXISTS floranet.contact_request;
DELIMITER $$ DELIMITER $$
$$ $$
CREATE DEFINER=`root`@`localhost` CREATE DEFINER=`root`@`localhost`
PROCEDURE floranet.contact_Request( PROCEDURE floranet.contact_request(
vName VARCHAR(100), vName VARCHAR(100),
vPhone VARCHAR(15), vPhone VARCHAR(15),
vEmail VARCHAR(100), vEmail VARCHAR(100),

View File

@ -0,0 +1,19 @@
DROP PROCEDURE IF EXISTS floranet.sliders_get;
DELIMITER $$
$$
CREATE DEFINER=`root`@`localhost` PROCEDURE floranet.sliders_get()
READS SQL DATA
BEGIN
/**
* Returns list of url for sliders
*/
SELECT
CONCAT('https://cdn.verdnatura.es/image/catalog/1600x900/', i.image) url,
i.longName
FROM vn.item i
JOIN vn.itemType it ON it.id = i.typeFk
WHERE it.code IN ('FNR','FNP');
END$$
DELIMITER ;