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`.`workerMistake_add`(vWorkerFk INT, vWorkerMistakeTypeFk VARCHAR(10))
|
2024-01-15 11:31:03 +00:00
|
|
|
BEGIN
|
|
|
|
/**
|
|
|
|
* Añade error al trabajador
|
|
|
|
*
|
|
|
|
* @param vWorkerFk id del trabajador al cual se le va a añadir error
|
|
|
|
* @param vWorkerMistakeTypeFk code del tipo de error
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
INSERT INTO vn.workerMistake(userFk, workerMistakeTypeFk)
|
|
|
|
VALUES(vWorkerFk, vWorkerMistakeTypeFk);
|
|
|
|
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|