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`.`getDayExpeditions`()
|
2024-01-15 11:31:03 +00:00
|
|
|
BEGIN
|
|
|
|
|
|
|
|
SELECT
|
2024-02-05 08:02:31 +00:00
|
|
|
e.id as expeditionFk,
|
|
|
|
date_format(e.created,'%Y-%m-%d') as expeditionDate,
|
|
|
|
e.ticketFk,
|
2024-01-15 11:31:03 +00:00
|
|
|
t.routeFk as routeFk
|
2024-02-14 11:12:40 +00:00
|
|
|
FROM expedition e
|
|
|
|
INNER JOIN ticket t ON t.id = e.ticketFk
|
|
|
|
WHERE DATE(e.created) = util.VN_CURDATE();
|
2024-01-15 11:31:03 +00:00
|
|
|
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|