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`.`saleGroup_add`(vSectorFk INT,vTicketFk INT)
|
2024-01-15 11:31:03 +00:00
|
|
|
BEGIN
|
|
|
|
/**
|
|
|
|
* Añade un nuevo registro a la tabla y devuelve su id.
|
|
|
|
*
|
|
|
|
* @param vSectorFk Identificador de vn.sector
|
|
|
|
*/
|
2024-01-25 16:33:54 +00:00
|
|
|
INSERT INTO vn.saleGroup
|
|
|
|
SET `userFk` = account.myUser_getId(),
|
|
|
|
`sectorFk` = vSectorFk,
|
|
|
|
`ticketFk` = vTicketFk;
|
2024-01-15 11:31:03 +00:00
|
|
|
|
|
|
|
SELECT LAST_INSERT_ID();
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|