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`.`timeBusiness_calculateAll`(vDatedFrom DATETIME, vDatedTo DATETIME)
|
2024-01-15 11:31:03 +00:00
|
|
|
BEGIN
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param vDatedFrom Fecha desde
|
|
|
|
* @param vDatedTo Fecha hasta
|
|
|
|
*/
|
|
|
|
|
|
|
|
CREATE OR REPLACE TEMPORARY TABLE tmp.`user`
|
|
|
|
SELECT w.id userFk
|
|
|
|
FROM vn.worker w;
|
|
|
|
|
|
|
|
CALL vn.timeBusiness_calculate(vDatedFrom, vDatedTo);
|
|
|
|
|
|
|
|
DROP TEMPORARY TABLE tmp.`user`;
|
|
|
|
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|