2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
2024-07-22 09:52:42 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`vn-admin`@`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 ;
|