2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
2024-08-20 08:06:10 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `vn`.`shelvingLog_get`(shelvingFk VARCHAR(10))
|
2024-01-15 11:31:03 +00:00
|
|
|
BEGIN
|
|
|
|
|
|
|
|
/* Lista el log de un carro
|
|
|
|
*
|
|
|
|
* @param shelvingFk matrícula del carro
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
SELECT originFk, name, creationDate, description
|
|
|
|
FROM shelvingLog sl
|
|
|
|
JOIN account.user u ON u.id = sl.userFk
|
|
|
|
WHERE sl.originFk = shelvingFk COLLATE utf8_general_ci
|
|
|
|
ORDER BY creationDate DESC;
|
|
|
|
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|