20 lines
427 B
SQL
20 lines
427 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`timeControl_calculateAll`(vDatedFrom DATETIME, vDatedTo DATETIME)
|
|
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.timeControl_calculate(vDatedFrom, vDatedTo);
|
|
|
|
DROP TEMPORARY TABLE tmp.`user`;
|
|
|
|
END$$
|
|
DELIMITER ;
|