feat: refs #7207 show queue in worker summary #3007
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#3007
Loading…
Reference in New Issue
No description provided.
Delete Branch "7207-showPbx"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WIP: feat: refs #7207 show queue in worker summaryto feat: refs #7207 show queue in worker summary@ -0,0 +19,4 @@
}
},
"relations": {
"queueRelation": {
Como tiene un campo llamado queue, no puedo llamar a la relación queue, no funciona.
@ -0,0 +1,36 @@
DELIMITER $$
CREATE OR REPLACE DEFINER=`vn`@`localhost` PROCEDURE `vn`.`queueMember_updateQueue`(
pon esto pero tienes que transaccionralo
Este script falla cuando no existe una cola para el nuevo departamento.
Además, no elimina el registro con la cola anterior:
Creo que así funciona ya bien:
@ -0,0 +18,4 @@
FROM business b
JOIN department d ON d.id = b.departmentFk
JOIN pbx.sip s ON s.user_id = b.workerFk
LEFT JOIN pbx.queueMember qm ON qm.extension = s.extension
quitar left y variable prev
@ -0,0 +26,4 @@
INSERT IGNORE INTO pbx.queueMember (queue, extension)
VALUES (vNewQueue, vExtension);
END$$
transaccion