INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1775754562981','1','','817','2026-04-09','2026-04-09','08:00:00','18:00:00','Finalizado','110','110','','-1775754562981','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1775754562981','1','','817','2026-04-09','2026-04-09','','','','','110','7512','-1775754578217','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1775754562981','1','','817','2026-04-09','2026-04-09','','','','','110','815502','-1775758941023','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1775754562981','1','','817','2026-04-09','2026-04-09','','','','','110','815501','-1775758990158','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1775754562981','1','','817','2026-04-09','2026-04-09','','','','','110','36502','-1775759044688','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1776085711935','999','','0','2026-04-13','2026-04-10','08:00:00','18:00:00','Finalizado','110','110','','-1776085711935','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1776085751656','6','','0','2026-04-13','2026-04-13','08:00:00','18:00:00','Finalizado','110','110','','-1776085751656','','') - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775754578217','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775754578217','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775754578217','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775754578217','104','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775754578217','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775754578217','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775754578217','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775754578217','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775754578217','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775754578217','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775754578217','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775754578217','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758941023','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758941023','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758941023','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758941023','104','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758941023','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758941023','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758941023','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758941023','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758941023','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758941023','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758941023','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758941023','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758990158','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758990158','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758990158','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758990158','104','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758990158','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758990158','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758990158','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758990158','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758990158','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758990158','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758990158','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775758990158','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775759044688','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775759044688','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775759044688','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775759044688','104','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775759044688','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775759044688','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775759044688','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775759044688','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775759044688','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775759044688','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775759044688','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1775759044688','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1775754562981','2026-04-09','','visitas brasao Alfa chapeco e nas 2 lojas cristo Rei. hoje nao tem cliente no roteiro estamos indo bater em clientes onde nao compram mais de anos para ver se recuperamos .') - 110;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1776085711935','2026-04-10','','fechamento da semana .') - 110;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1776085751656','2026-04-13','','rps.') - 110;
UPDATE agenda_tarefa SET idPrimario = 56799 WHERE idPrimario = -1775754562981 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 56799 WHERE tarefa = -1775754562981 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 56800 WHERE tarefa = -1775754578217 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 56800 WHERE tarefa = -1775754578217 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 56801 WHERE tarefa = -1775758941023 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 56801 WHERE tarefa = -1775758941023 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 56802 WHERE tarefa = -1775758990158 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 56802 WHERE tarefa = -1775758990158 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 56803 WHERE tarefa = -1775759044688 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 56803 WHERE tarefa = -1775759044688 - 110;
UPDATE agenda_tarefa SET idPrimario = 56804 WHERE idPrimario = -1776085711935 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 56804 WHERE tarefa = -1776085711935 - 110;
UPDATE agenda_tarefa SET idPrimario = 56805 WHERE idPrimario = -1776085751656 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 56805 WHERE tarefa = -1776085751656 - 110;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110;
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 ; - 110;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 110;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 110;
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 = '56799'
GROUP BY a.idPrimario - 110;
Binding output parameters deu certo: ( 0) - 110;
FORM VENDEDOR 20 - 110;
GRUPO->
Grupos:
| Grupo |
Qtd |
Percentual |
| 1 - VISITA PLENA |
48 |
50.00 |
- 110;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
| 1 - VISITA PLENA |
101 - 1 - É UMA VISITA NO ROTEIRO DO DIA? |
4 |
100.00 |
| 1 - VISITA PLENA |
102 - 2 - PLANEJOU A ROTA DO DIA, QUANTIDADE DE CLIENTES, AÇÕES LIBERADAS, PEDIDOS PENDENTES?
|
4 |
100.00 |
| 1 - VISITA PLENA |
103 - 3 - FEZ O MINUTO DE OURO - ANTES DE ENTRAR NA LOJA ANALISANDO O CLIENTE, LIMITE DE CRÉDITO, MIX, VOLUME ATÉ A DATA E ITEM DESAFIO QUE INCLUIREMOS NA PROPOSTA? |
4 |
100.00 |
| 1 - VISITA PLENA |
104 - 4 - VENDEDOR UTILIZOU A PAUTA / LÂMINA?
|
4 |
0.00 |
| 1 - VISITA PLENA |
105 - 5- FEZ LEITURA DE LOJA? ANALISOU O PREÇO? MONTOU A PROPOSTA ANALISANDO NOSSAS MARCAS E CONCORRENTES? |
4 |
75.00 |
| 1 - VISITA PLENA |
106 - 6- A LOJA POSSUI AÇÕES DE MERCHAN, PONTA, ILHA OU EXPOSITOR?
|
4 |
0.00 |
| 1 - VISITA PLENA |
107 - 7- FEZ A NEGOCIAÇÃO COM BASE NO MINUTO DE OURO E NA LEITURA DE LOJA?
|
4 |
50.00 |
| 1 - VISITA PLENA |
108 - 8- ORIENTA QUANTO A PRÁTICA DE PREÇOS? NEGOCIOU PREÇOS E ITENS COM DESCONTO?
|
4 |
25.00 |
| 1 - VISITA PLENA |
109 - 9 - FEZ A INTRODUÇÃO DE ALGUM ITEM OU CADASTRO NOVO?
|
4 |
0.00 |
| 1 - VISITA PLENA |
110 - 10 - ABASTECEU, COLOCOU MATERIAL, ORGANIZOU GÔNDOLAS E RUPTURAS, ARRUMOU E/OU COLOCOU PREÇO?
|
4 |
50.00 |
| 1 - VISITA PLENA |
111 - 11- REALIZOU O FECHAMENTO DA VISITA REPASSANDO OS ITENS, FORMA DE PAGAMENTO, PREVISÃO DE ENTREGA E DATA DA PRÓXIMA VISITA?
|
4 |
0.00 |
| 1 - VISITA PLENA |
112 - 12 - TRANSMITIU O PEDIDO AO SAIR DO CLIENTE? |
4 |
100.00 |
- 110;
statusNaoFinalizado - 110;
statusNaoFinalizado - 110;
statusNaoFinalizado - 110;
statusNaoFinalizado - 110;
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 = '56804'
GROUP BY a.idPrimario - 110;
Binding output parameters deu certo: ( 0) - 110;
FORM VENDEDOR 20 - 110;
GRUPO->Grupos:
- 110;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
- 110;
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 = '56805'
GROUP BY a.idPrimario - 110;
Binding output parameters deu certo: ( 0) - 110;
FORM VENDEDOR 20 - 110;
GRUPO->Grupos:
- 110;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
- 110;