DELETE FROM agenda_tarefa WHERE idPrimario ='-1772198990414' - 80;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1772198984864','1','','1018','2026-02-27','2026-02-27','08:00:00','18:00:00','Finalizado','46','80','','-1772198984864','','') - 80;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1772200731182','4','','1019','2026-02-27','2026-02-27','17:00:00','18:00:00','Pendente','46','80','','-1772200731182','','') - 80;
UPDATE agenda_tarefa SET assunto ='1', observacao = '', vendedor='1016', dataCriacao = '2026-02-26', data = '2026-02-17', horario_inicial = '08:00:00', horario_final = '10:00:00', status = 'Finalizado', usuario = '46', supervisor = '80', clientes = '', resumo= '' WHERE id = '55615' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','103','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','204','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('55616','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','101','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','103','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','205','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','304','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','420','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772198990414','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('55615','','','') - 80;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1772198984864','2026-03-13','','') - 80;
UPDATE agenda_tarefa SET idPrimario = 55636 WHERE idPrimario = -1772198984864 - 80;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55636 WHERE tarefa = -1772198984864 - 80;
UPDATE agenda_tarefa SET idPrimario = 55637 WHERE idPrimario = -1772200731182 - 80;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55637 WHERE tarefa = -1772200731182 - 80;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 80;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 80;
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 ; - 80;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 80;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 80;
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 = '55636'
GROUP BY a.idPrimario - 80;
Binding output parameters deu certo: ( 0) - 80;
FORM VENDEDOR 20 - 80;
GRUPO->
Grupos:
- 80;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
- 80;
statusNaoFinalizado - 80;
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 = '55615'
GROUP BY a.idPrimario - 80;
Binding output parameters deu certo: ( 0) - 80;
FORM VENDEDOR 20 - 80;
GRUPO->Grupos:
| Grupo |
Qtd |
Percentual |
| 1 - 1 - PLANEJAR |
3 |
66.67 |
| 2 - 2 - LEITURA DE LOJA |
5 |
60.00 |
| 3 - 3 - EXECUTAR |
5 |
40.00 |
| 4 - 4 - NEGOCIAR |
6 |
33.33 |
| 5 - 5 - ANALISAR |
3 |
33.33 |
- 80;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
| 1 - 1 - PLANEJAR |
101 - 1 - É UMA VISITA NO ROTEIRO DO DIA? |
1 |
100.00 |
| 1 - 1 - PLANEJAR |
102 - 2 - VERIFICOU E SABE O QUE PRECISA VENDER NA VISITA/CLIENTE (ITENS A POSITIVAR, DESAFIO DO DIA E VOLUME)? |
1 |
100.00 |
| 1 - 1 - PLANEJAR |
103 - 3 - VERIFICOU CADASTRO (CRÉDITO/PRAZO) E HISTÓRICO DE COMPRA? |
1 |
0.00 |
| 2 - 2 - LEITURA DE LOJA |
105 - 4 - FEZ O LEVANTAMENTO DE ESTOQUE USANDO O HISTÓRICO DO APP DE VENDAS? |
1 |
0.00 |
| 2 - 2 - LEITURA DE LOJA |
107 - 6 - ANALISOU CONCORRENTES (ESPAÇO, MIX E PREÇOS)? IDENTIFICOU OPORTUNIDADES? |
1 |
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? |
1 |
100.00 |
| 2 - 2 - LEITURA DE LOJA |
205 - 8 - LOJA TEM AÇÕES DE MERCHANDISING? (PONTA, ILHA, ENCARTE, EXPOSITOR) |
1 |
0.00 |
| 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? |
1 |
100.00 |
| 3 - 3 - EXECUTAR |
108 - 9 - ANALISOU A VALIDADE DOS PRODUTOS? TOMOU ATITUDE PARA RESOLVER O PROBLEMA? |
1 |
0.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? |
1 |
0.00 |
| 3 - 3 - EXECUTAR |
420 - 11 - VERIFICOU TROCAS E PROBLEMAS COM PRODUTOS? RESOLVER IMEDIATAMENTE. |
1 |
100.00 |
| 3 - 3 - EXECUTAR |
421 - 12 - ABASTECEU, COLOCOU MATERIAL, ORGANIZOU GÔNDOLAS E RUPTURAS, ARRUMOU E/OU COLOCOU PREÇO? |
1 |
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. |
1 |
0.00 |
| 4 - 4 - NEGOCIAR |
109 - 14 - FEZ UMA ABORDAGEM/ABERTURA EFICIENTE? (CORDIAL, POSITIVA, ADEQUADA AO PERFIL DESTE CLIENTE) |
1 |
0.00 |
| 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)? |
1 |
0.00 |
| 4 - 4 - NEGOCIAR |
112 - 16 - NEGOCIOU AS RUPTURAS (SE FOR FILIAL OU COMPRADOR AUSENTE, FEZ A CONTAGEM ESTOQUE E IDENTIFICOU RUPTURA)? |
1 |
0.00 |
| 4 - 4 - NEGOCIAR |
113 - 17 - FEZ INTRODUÇÃO DE ALGUM ITEM (CADASTRO NOVO)? |
1 |
100.00 |
| 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 |
1 |
100.00 |
| 4 - 4 - NEGOCIAR |
210 - 17 - TIROU O PEDIDO? (NÃO É ORÇAMENTO! É PEDIDO PARA FATURAR JÁ!!)
(SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR SIM) |
1 |
0.00 |
| 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) |
1 |
0.00 |
| 5 - 5 - ANALISAR |
214 - 22 - REVISOU O PEDIDO ANTES DE ENVIAR (PREÇOS, COMBOS, BONIFICAÇÕES, PRAZO, ETC...)? |
1 |
100.00 |
| 5 - 5 - ANALISAR |
215 - 23 - TRASMITIU AO SAIR DO CLIENTE? (PEDIDO, NÃO VENDA OU VENDA DIGITADO POSTERIOR) |
1 |
0.00 |
- 80;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 80;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 80;
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 ; - 80;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 80;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 80;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 80;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 80;
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 ; - 80;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 80;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 80;
DELETE FROM agenda_tarefa WHERE idPrimario ='55637' - 80;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('55637','1004','','191','2026-02-27','2026-02-27','','','','','80','30547302','-1772205245540','','') - 80;
UPDATE agenda_tarefa SET assunto ='1004', observacao = '', vendedor='191', dataCriacao = '2026-02-27', data = '2026-02-27', horario_inicial = '08:00:00', horario_final = '11:00:00', status = 'Pendente', usuario = '80', supervisor = '80', clientes = '', resumo= '' WHERE id = '55637' - 80;
UPDATE agenda_resposta_formulario SET tarefa = 55639 WHERE tarefa = -1772205245540 - 80;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55639 WHERE tarefa = -1772205245540 - 80;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 80;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 80;
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 ; - 80;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 80;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 80;
statusNaoFinalizado - 80;
statusNaoFinalizado - 80;
DELETE FROM agenda_tarefa WHERE idPrimario ='-1772209821759' - 80;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1772209821759','1','','191','2026-02-27','2026-02-27','','','','','80','30547302','-1772209824375','','') - 80;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1772210294875','1','','80','2026-02-27','2026-02-27','14:00:00','16:00:00','Pendente','80','80','','-1772210294875','','') - 80;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1772210294875','1','','191','2026-02-27','2026-02-27','','','','','80','17056','-1772210306291','','') - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','204','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','205','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','304','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','307','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','420','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','421','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','422','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','113','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','209','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','210','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','115','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','214','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','215','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','101','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','102','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','103','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','105','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','107','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','108','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','109','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','110','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1772209824375','112','-1','') ON DUPLICATE KEY UPDATE resposta = '-1', resposta_txt = '' - 80;
UPDATE agenda_resposta_formulario SET tarefa = 55640 WHERE tarefa = -1772209824375 - 80;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55640 WHERE tarefa = -1772209824375 - 80;
UPDATE agenda_tarefa SET idPrimario = 55641 WHERE idPrimario = -1772210294875 - 80;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55641 WHERE tarefa = -1772210294875 - 80;
UPDATE agenda_resposta_formulario SET tarefa = 55642 WHERE tarefa = -1772210306291 - 80;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 55642 WHERE tarefa = -1772210306291 - 80;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 80;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 80;
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 ; - 80;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 80;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 80;
statusNaoFinalizado - 80;
statusNaoFinalizado - 80;
statusNaoFinalizado - 80;