2024-03-13 13:00:59 +00:00
|
|
|
DROP PROCEDURE IF EXISTS floranet.sliders_get;
|
|
|
|
|
|
|
|
DELIMITER $$
|
|
|
|
$$
|
|
|
|
CREATE DEFINER=`root`@`localhost` PROCEDURE floranet.sliders_get()
|
|
|
|
READS SQL DATA
|
|
|
|
BEGIN
|
|
|
|
/**
|
2024-04-11 11:25:43 +00:00
|
|
|
* Returns list of url for sliders.
|
2024-03-13 13:00:59 +00:00
|
|
|
*/
|
|
|
|
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
|
2024-04-08 12:30:46 +00:00
|
|
|
WHERE it.code IN ('FNR','FNP')
|
|
|
|
LIMIT 3;
|
2024-03-13 13:00:59 +00:00
|
|
|
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|