DELETE FROM agenda_tarefa WHERE idPrimario ='-1728598265626' - 90;
DELETE FROM agenda_tarefa WHERE idPrimario ='-1728598294671' - 90;
DELETE FROM agenda_tarefa WHERE idPrimario ='-1728598291675' - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1728511100292','7','','90','2024-10-09','2024-10-07','08:00:00','18:00:00','Finalizado','90','90','','-1728511100292','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1728511130065','7','','90','2024-10-09','2024-10-08','08:00:00','18:00:00','Finalizado','90','90','','-1728511130065','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1728511158539','3','','90','2024-10-09','2024-10-09','08:00:00','18:00:00','Finalizado','90','90','','-1728511158539','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1728598034427','1','','498','2024-10-10','2024-10-10','08:00:00','12:00:00','Finalizado','90','90','','-1728598034427','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1728598034427','1','','498','2024-10-10','2024-10-10','','','','','90','108504','-1728598049045','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1728598034427','1','','498','2024-10-10','2024-10-10','','','','','90','30869901','-1728598157199','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1728598034427','1','','498','2024-10-10','2024-10-10','','','','','90','20030801','-1728598217261','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1728598291675','2','','498','2024-10-10','2024-10-10','08:00:00','12:00:00','Finalizado','90','90','','-1728598291675','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1728598291675','2','','498','2024-10-10','2024-10-10','','','','','90','108504','-1728598331565','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1728598370284','7','','90','2024-10-10','2024-10-10','14:00:00','18:00:00','Finalizado','90','90','','-1728598370284','','') - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','101','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','422','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','212','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','116','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598049045','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','204','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','205','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','422','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598157199','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','304','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','212','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','116','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598217261','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598331565','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598331565','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598331565','418','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1728598331565','419','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1728511100292','','','') - 90;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1728511130065','','','') - 90;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1728511158539','','','') - 90;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1728598034427','','','') - 90;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1728598291675','','','') - 90;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1728598370284','','','') - 90;
UPDATE agenda_tarefa SET idPrimario = 38877 WHERE idPrimario = -1728511100292 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 38877 WHERE tarefa = -1728511100292 - 90;
UPDATE agenda_tarefa SET idPrimario = 38878 WHERE idPrimario = -1728511130065 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 38878 WHERE tarefa = -1728511130065 - 90;
UPDATE agenda_tarefa SET idPrimario = 38879 WHERE idPrimario = -1728511158539 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 38879 WHERE tarefa = -1728511158539 - 90;
UPDATE agenda_tarefa SET idPrimario = 38880 WHERE idPrimario = -1728598034427 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 38880 WHERE tarefa = -1728598034427 - 90;
UPDATE agenda_resposta_formulario SET tarefa = 38881 WHERE tarefa = -1728598049045 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 38881 WHERE tarefa = -1728598049045 - 90;
UPDATE agenda_resposta_formulario SET tarefa = 38882 WHERE tarefa = -1728598157199 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 38882 WHERE tarefa = -1728598157199 - 90;
UPDATE agenda_resposta_formulario SET tarefa = 38883 WHERE tarefa = -1728598217261 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 38883 WHERE tarefa = -1728598217261 - 90;
UPDATE agenda_tarefa SET idPrimario = 38884 WHERE idPrimario = -1728598291675 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 38884 WHERE tarefa = -1728598291675 - 90;
UPDATE agenda_resposta_formulario SET tarefa = 38885 WHERE tarefa = -1728598331565 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 38885 WHERE tarefa = -1728598331565 - 90;
UPDATE agenda_tarefa SET idPrimario = 38886 WHERE idPrimario = -1728598370284 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 38886 WHERE tarefa = -1728598370284 - 90;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 90;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 90;
insert into agenda_tarefa (idPrimario, assunto, vendedor, dataCriacao, dataInsercao, data, horario_inicial, horario_final, usuario, supervisor, idOriginal, observacao, clientes, resumo, status) select date_format(now(),'%Y%m%d%H%i%s') * -1, 999, b.vendedor, curdate(), now(), a.prazo, '08:00:00', '08:00:00', b.supervisor, b.supervisor, date_format(now(),'%Y%m%d%H%i%s') * -1, a.acao, '', '', 'Pendente' FROM agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b where a.tarefaAgendada is null and a.tarefa = b.id ; - 90;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 90;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 90;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '38877'
GROUP BY a.idPrimario - 90;
Binding output parameters deu certo: ( 0) - 90;
FORM VENDEDOR 20 - 90;
GRUPO->
Grupos:
- 90;
Respostas->Questões:
Grupo | Questes | Qtd | Percentual |
---|
- 90;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '38878'
GROUP BY a.idPrimario - 90;
Binding output parameters deu certo: ( 0) - 90;
FORM VENDEDOR 20 - 90;
GRUPO->Grupos:
- 90;
Respostas->Questões:
Grupo | Questes | Qtd | Percentual |
---|
- 90;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '38879'
GROUP BY a.idPrimario - 90;
Binding output parameters deu certo: ( 0) - 90;
FORM VENDEDOR 20 - 90;
GRUPO->Grupos:
- 90;
Respostas->Questões:
Grupo | Questes | Qtd | Percentual |
---|
- 90;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '38880'
GROUP BY a.idPrimario - 90;
Binding output parameters deu certo: ( 0) - 90;
FORM VENDEDOR 20 - 90;
GRUPO->Grupos:
Grupo |
Qtd |
Percentual |
1 - 1 - PLANEJAR |
9 |
88.89 |
2 - 2 - LEITURA DE LOJA |
15 |
66.67 |
3 - 3 - EXECUTAR |
15 |
80.00 |
4 - 4 - NEGOCIAR |
21 |
52.38 |
5 - 5 - ANALISAR |
12 |
25.00 |
- 90;
Respostas->Questões:
Grupo | Questes | Qtd | Percentual |
---|
1 - 1 - PLANEJAR |
101 - 1 - É UMA VISITA NO ROTEIRO DO DIA? |
3 |
66.67 |
1 - 1 - PLANEJAR |
102 - 2 - TEM AS PARCIAIS (MSL/TOPS/CAMPANHAS), ANALISOU E SABE O QUE PRECISA FAZER NESTA VISITA/CLIENTE (ITENS QUE PRECISA POSITIVAR, TAREFA ANTERIOR, ETC)? |
3 |
100.00 |
1 - 1 - PLANEJAR |
103 - 3 - REVISOU CADASTRO (CRÉDITO) E HISTÓRICO DE COMPRA? |
3 |
100.00 |
2 - 2 - LEITURA DE LOJA |
105 - 4 - FEZ O LEVANTAMENTO DE ESTOQUE USANDO O HISTÓRICO DO APP DE VENDAS? |
3 |
100.00 |
2 - 2 - LEITURA DE LOJA |
107 - 6 - ANALISOU CONCORRENTES (ESPAÇO, MIX E PREÇOS)? IDENTIFICOU OPORTUNIDADES COM OLHO NA CONCORRÊNCIA? |
3 |
100.00 |
2 - 2 - LEITURA DE LOJA |
204 - 7 - LOJA TEM DE AÇÕES DE MERCHANDISING? (CLIP STRIP, CROSS MERCHANDISING, WOBLER, CARTAZ, ETC...) SE NÃO TINHA, COLOCOU ALGUM ITEM? |
3 |
33.33 |
2 - 2 - LEITURA DE LOJA |
205 - 8 - LOJA TEM AÇÕES DE MERCHANDISING? (PONTA, ILHA, ENCARTE, EXPOSITOR) |
3 |
33.33 |
2 - 2 - LEITURA DE LOJA |
304 - 5 - ANALISOU NOSSO PREÇOS VS PREÇO SUGERIDO? PRODUTOS ESTÃO PRECIFICADOS CORRETAMENTE (MESMO PREÇO ENTRE FRAGRÂNCIAS E SIMILARES/AGRUPAMENTOS)? CORRIGIU O PROBLEMA? |
3 |
66.67 |
3 - 3 - EXECUTAR |
108 - 9 - ANALISOU A VALIDADE DOS PRODUTOS? TOMOU ATITUDE PARA RESOLVER O PROBLEMA? |
3 |
100.00 |
3 - 3 - EXECUTAR |
307 - 10 - FOI NO DEPÓSITO? VERIFICOU SE TEM MERCADORIA NO DEPÓSITO E NÃO TEM NA ÁREA DE VENDAS? RESOLVEU PROBLEMAS? |
3 |
33.33 |
3 - 3 - EXECUTAR |
420 - 11 - VERIFICOU TROCAS E PROBLEMAS COM PRODUTOS? RESOLVER IMEDIATAMENTE. |
3 |
100.00 |
3 - 3 - EXECUTAR |
421 - 12 - ABASTECEU, COLOCOU MATERIAL, ORGANIZOU GÔNDOLAS E RUPTURAS, ARRUMOU E/OU COLOCOU PREÇO? |
3 |
100.00 |
3 - 3 - EXECUTAR |
422 - 13 - CORRIGIU MERCADORIA QUE NÃO TINHA NO PONTO NATURAL MAS TINHA NO PONTO EXTRA? CASO ESTEJA OK, MARCAR SIM. |
3 |
66.67 |
4 - 4 - NEGOCIAR |
109 - 14 - FEZ UMA ABORDAGEM/ABERTURA EFICIENTE? (CORDIAL, POSITIVA, ADEQUADA AO PERFIL DESTE CLIENTE) |
3 |
66.67 |
4 - 4 - NEGOCIAR |
110 - 15 - APRESENTOU A PAUTA AO CLIENTE (MESMO SENDO FILIAL OU COMPRADOR AUSENTE, APRESENTE AO GESTOR DA LOJA ITENS QUE DESEJA INTRODUZIR)? |
3 |
66.67 |
4 - 4 - NEGOCIAR |
112 - 17 - NEGOCIOU AS RUPTURAS (SE FOR FILIAL OU COMPRADOR AUSENTE, FEZ A CONTAGEM ESTOQUE E IDENTIFICOU RUPTURA)? |
3 |
66.67 |
4 - 4 - NEGOCIAR |
113 - 19 - FEZ INTRODUÇÃO DE ALGUM ITEM (CADASTRO NOVO)? |
3 |
33.33 |
4 - 4 - NEGOCIAR |
209 - 18 - TINHA ARGUMENTOS PARA REVERTER OBJEÇÃO (SE NÃO TEVE=RESPOSTA SIM) SE NÃO CONSEGUIU REVERTER, TEMA PARA FEEDBACK E INCLUIR NAS TAREFAS/AGENDA FUTURA. QUAL A OBJEÇÃO, COMO REVERTER, DICAS, TREINAR, ETC. (SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR |
3 |
66.67 |
4 - 4 - NEGOCIAR |
210 - 17 - TIROU O PEDIDO? (NÃO É ORÇAMENTO! É PEDIDO PARA FATURAR JÁ!!)
(SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR SIM) |
3 |
33.33 |
4 - 4 - NEGOCIAR |
212 - 20 - "TIROU O PEDIDO? (NÃO É ORÇAMENTO! É PEDIDO PARA FATURAR JÁ!!)
(SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR SIM) |
3 |
33.33 |
5 - 5 - ANALISAR |
115 - 18 - AO SAIR DO CLIENTE REFORÇOU O QUE FOI COMBINADO?
(VALOR DO PEDIDO/DATA/ESPAÇO/PREÇO/RUPTURAS/CAMPANHAS/ITENS INTRODUZIR) |
3 |
33.33 |
5 - 5 - ANALISAR |
116 - 21 - "AO SAIR DO CLIENTE REFORÇOU O QUE FOI COMBINADO?
(VALOR DO PEDIDO/DATA/ESPAÇO/PREÇO/RUPTURAS/CAMPANHAS/ITENS INTRODUZIR)" |
3 |
33.33 |
5 - 5 - ANALISAR |
214 - 22 - REVISOU O PEDIDO ANTES DE ENVIAR (PREÇOS, COMBOS, BONIFICAÇÕES, PRAZO, ETC...)? |
3 |
33.33 |
5 - 5 - ANALISAR |
215 - 23 - TRASMITIU AO SAIR DO CLIENTE? (PEDIDO, NÃO VENDA OU VENDA DIGITADO POSTERIOR) |
3 |
0.00 |
- 90;
statusNaoFinalizado - 90;
statusNaoFinalizado - 90;
statusNaoFinalizado - 90;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '38884'
GROUP BY a.idPrimario - 90;
Binding output parameters deu certo: ( 0) - 90;
FORM VENDEDOR 20 - 90;
GRUPO->Grupos:
Grupo |
Qtd |
Percentual |
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR |
4 |
25.00 |
- 90;
Respostas->Questões:
Grupo | Questes | Qtd | Percentual |
---|
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR |
416 - É C1 (MOTIVAÇÃO BAIXA / HABILIDADE BAIXA)? ESTILO DO LÍDER = DIRIGIR. |
1 |
0.00 |
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR |
417 - É C2 (MOTIVAÇÃO ALTA / HABILIDADE BAIXA)? ESTILO DO LÍDER = GUIAR. |
1 |
0.00 |
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR |
418 - É C3 (MOTIVAÇÃO BAIXA / HABILIDADE ALTA)? ESTILO DO LÍDER = APOIAR. |
1 |
100.00 |
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR |
419 - É C4 (MOTIVAÇÃO ALTA / HABILIDADE ALTA)? ESTILO DO LÍDER = DELEGAR. |
1 |
0.00 |
- 90;
statusNaoFinalizado - 90;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '38886'
GROUP BY a.idPrimario - 90;
Binding output parameters deu certo: ( 0) - 90;
FORM VENDEDOR 20 - 90;
GRUPO->Grupos:
- 90;
Respostas->Questões:
Grupo | Questes | Qtd | Percentual |
---|
- 90;