INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1778685828665','3','','855','2026-05-13','2026-05-16','08:00:00','09:00:00','Pendente','110','110','','-1778685828665','','') - 110; UPDATE agenda_tarefa SET idPrimario = 57383 WHERE idPrimario = -1778685828665 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 57383 WHERE tarefa = -1778685828665 - 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; statusNaoFinalizado - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1784045879478','1','','856','2026-07-14','2026-07-14','08:00:00','18:00:00','Finalizado','110','110','','-1784045879478','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1784045890881','6','','0','2026-07-14','2026-07-13','08:00:00','18:00:00','Finalizado','110','110','','-1784045890881','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1784045879478','1','','856','2026-07-14','2026-07-14','','','','','110','20766801','-1784046801289','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1784045879478','1','','856','2026-07-14','2026-07-14','','','','','110','31101201','-1784051180677','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1784045879478','1','','856','2026-07-14','2026-07-14','','','','','110','19747901','-1784052644812','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1784045879478','1','','856','2026-07-14','2026-07-14','','','','','110','20325001','-1784055881676','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1784045879478','1','','856','2026-07-14','2026-07-14','','','','','110','207301','-1784056747326','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1784045879478','1','','856','2026-07-14','2026-07-14','','','','','110','291201','-1784063481945','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1784117447073','1','','856','2026-07-15','2026-07-15','08:00:00','18:00:00','Pendente','110','110','','-1784117447073','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1784117447073','1','','856','2026-07-15','2026-07-15','','','','','110','19780001','-1784121522766','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1784117447073','1','','856','2026-07-15','2026-07-15','','','','','110','20604401','-1784123901861','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1784117447073','1','','856','2026-07-15','2026-07-15','','','','','110','20652001','-1784123970398','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1784117447073','1','','856','2026-07-15','2026-07-15','','','','','110','21032901','-1784125514470','','') - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784046801289','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784046801289','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784046801289','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784046801289','104','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784046801289','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784046801289','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784046801289','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784046801289','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784046801289','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784046801289','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784046801289','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784046801289','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784051180677','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784051180677','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784051180677','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784051180677','104','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784051180677','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784051180677','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784051180677','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784051180677','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784051180677','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784051180677','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784051180677','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784051180677','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784052644812','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784052644812','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784052644812','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784052644812','104','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784052644812','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784052644812','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784052644812','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784052644812','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784052644812','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784052644812','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784052644812','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784052644812','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784055881676','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784055881676','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784055881676','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784055881676','104','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784055881676','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784055881676','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784055881676','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784055881676','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784055881676','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784055881676','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784055881676','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784055881676','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784056747326','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784056747326','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784056747326','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784056747326','104','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784056747326','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784056747326','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784056747326','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784056747326','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784056747326','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784056747326','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784056747326','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784056747326','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784063481945','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784063481945','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784063481945','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784063481945','104','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784063481945','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784063481945','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784063481945','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784063481945','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784063481945','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784063481945','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784063481945','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784063481945','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784121522766','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784121522766','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784121522766','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784121522766','104','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784121522766','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784121522766','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784121522766','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784121522766','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784121522766','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784121522766','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784121522766','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784121522766','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123901861','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123901861','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123901861','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123901861','104','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123901861','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123901861','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123901861','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123901861','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123901861','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123901861','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123901861','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123901861','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123970398','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123970398','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123970398','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123970398','104','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123970398','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123970398','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123970398','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123970398','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123970398','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123970398','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123970398','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784123970398','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784125514470','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784125514470','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784125514470','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784125514470','104','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784125514470','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784125514470','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784125514470','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784125514470','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784125514470','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784125514470','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784125514470','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1784125514470','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1784045890881','2026-07-13','','Reuniao equipe oeste') - 110; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1784045879478','2026-08-14','','abrir novos Clientes. e forçar mais mix') - 110; UPDATE agenda_tarefa SET idPrimario = 57384 WHERE idPrimario = -1784045879478 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 57384 WHERE tarefa = -1784045879478 - 110; UPDATE agenda_tarefa SET idPrimario = 57385 WHERE idPrimario = -1784045890881 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 57385 WHERE tarefa = -1784045890881 - 110; UPDATE agenda_resposta_formulario SET tarefa = 57386 WHERE tarefa = -1784046801289 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 57386 WHERE tarefa = -1784046801289 - 110; UPDATE agenda_resposta_formulario SET tarefa = 57387 WHERE tarefa = -1784051180677 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 57387 WHERE tarefa = -1784051180677 - 110; UPDATE agenda_resposta_formulario SET tarefa = 57388 WHERE tarefa = -1784052644812 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 57388 WHERE tarefa = -1784052644812 - 110; UPDATE agenda_resposta_formulario SET tarefa = 57389 WHERE tarefa = -1784055881676 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 57389 WHERE tarefa = -1784055881676 - 110; UPDATE agenda_resposta_formulario SET tarefa = 57390 WHERE tarefa = -1784056747326 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 57390 WHERE tarefa = -1784056747326 - 110; UPDATE agenda_resposta_formulario SET tarefa = 57391 WHERE tarefa = -1784063481945 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 57391 WHERE tarefa = -1784063481945 - 110; UPDATE agenda_tarefa SET idPrimario = 57392 WHERE idPrimario = -1784117447073 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 57392 WHERE tarefa = -1784117447073 - 110; UPDATE agenda_resposta_formulario SET tarefa = 57393 WHERE tarefa = -1784121522766 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 57393 WHERE tarefa = -1784121522766 - 110; UPDATE agenda_resposta_formulario SET tarefa = 57394 WHERE tarefa = -1784123901861 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 57394 WHERE tarefa = -1784123901861 - 110; UPDATE agenda_resposta_formulario SET tarefa = 57395 WHERE tarefa = -1784123970398 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 57395 WHERE tarefa = -1784123970398 - 110; UPDATE agenda_resposta_formulario SET tarefa = 57396 WHERE tarefa = -1784125514470 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 57396 WHERE tarefa = -1784125514470 - 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 = '57384' GROUP BY a.idPrimario - 110; Binding output parameters deu certo: ( 0) - 110; FORM VENDEDOR 20 - 110; GRUPO->

Grupos:

Grupo Qtd Percentual
1 - VISITA PLENA 72 77.78
- 110; Respostas->

Questões:

GrupoQuestesQtdPercentual
1 - VISITA PLENA 101 - 1 - É UMA VISITA NO ROTEIRO DO DIA? 6 100.00
1 - VISITA PLENA 102 - 2 - PLANEJOU A ROTA DO DIA, QUANTIDADE DE CLIENTES, AÇÕES LIBERADAS, PEDIDOS PENDENTES? 6 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? 6 100.00
1 - VISITA PLENA 104 - 4 - VENDEDOR UTILIZOU A PAUTA / LÂMINA? 6 100.00
1 - VISITA PLENA 105 - 5- FEZ LEITURA DE LOJA? ANALISOU O PREÇO? MONTOU A PROPOSTA ANALISANDO NOSSAS MARCAS E CONCORRENTES? 6 100.00
1 - VISITA PLENA 106 - 6- A LOJA POSSUI AÇÕES DE MERCHAN, PONTA, ILHA OU EXPOSITOR? 6 16.67
1 - VISITA PLENA 107 - 7- FEZ A NEGOCIAÇÃO COM BASE NO MINUTO DE OURO E NA LEITURA DE LOJA? 6 100.00
1 - VISITA PLENA 108 - 8- ORIENTA QUANTO A PRÁTICA DE PREÇOS? NEGOCIOU PREÇOS E ITENS COM DESCONTO? 6 16.67
1 - VISITA PLENA 109 - 9 - FEZ A INTRODUÇÃO DE ALGUM ITEM OU CADASTRO NOVO? 6 83.33
1 - VISITA PLENA 110 - 10 - ABASTECEU, COLOCOU MATERIAL, ORGANIZOU GÔNDOLAS E RUPTURAS, ARRUMOU E/OU COLOCOU PREÇO? 6 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? 6 83.33
1 - VISITA PLENA 112 - 12 - TRANSMITIU O PEDIDO AO SAIR DO CLIENTE? 6 83.33
- 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 = '57385' GROUP BY a.idPrimario - 110; Binding output parameters deu certo: ( 0) - 110; FORM VENDEDOR 20 - 110; GRUPO->

Grupos:

Grupo Qtd Percentual
- 110; Respostas->

Questões:

GrupoQuestesQtdPercentual
- 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110;