DELETE FROM agenda_tarefa WHERE idPrimario ='52468' - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1748432744957','4','','100118','2025-05-28','2025-05-27','08:00:00','18:00:00','Pendente','44','44','','-1748432744957','','') - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1748432744957','4','','100118','2025-05-28','2025-05-28','','','','','44','30209501','-1748432747221','','') - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('52470','3','','100118','2025-05-28','2025-05-28','','','','','44','31109601','-1748432990295','','') - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('52470','3','','100118','2025-05-28','2025-05-28','','','','','44','31233101','-1748433045884','','') - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('52858','3','','100118','2025-05-28','2025-05-28','','','','','44','31449301','-1748435198310','','') - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('52858','3','','100118','2025-05-28','2025-05-28','','','','','44','31038701','-1748438614872','','') - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('52859','2','','100118','2025-05-28','2025-05-28','','','','','44','30209501','-1748438619900','','') - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('52860','4','','100118','2025-05-28','2025-05-28','','','','','44','30209501','-1748438621881','','') - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('52858','3','','100118','2025-05-28','2025-05-28','','','','','44','30477201','-1748442607819','','') - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1748959138563','7','','44','2025-06-03','2025-06-02','08:00:00','18:00:00','Finalizado','44','44','','-1748959138563','','') - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','303','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','305','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','207','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','114','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','208','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432990295','117','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','303','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','305','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','207','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','114','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','208','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748433045884','117','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432747221','423','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432747221','424','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432747221','425','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432747221','426','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432747221','427','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432747221','404','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432747221','428','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432747221','429','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432747221','430','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432747221','431','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432747221','432','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432747221','433','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432747221','434','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432747221','435','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432747221','436','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748432747221','437','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438619900','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438619900','417','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438619900','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438619900','419','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','303','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','305','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','207','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','114','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','208','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748435198310','117','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','303','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','305','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','207','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','114','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','208','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748438614872','117','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','303','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','305','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','207','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','114','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','208','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748442607819','117','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1748959138563','','','') - 44;
UPDATE agenda_tarefa SET idPrimario = 52922 WHERE idPrimario = -1748432744957 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52922 WHERE tarefa = -1748432744957 - 44;
UPDATE agenda_resposta_formulario SET tarefa = 52923 WHERE tarefa = -1748432747221 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52923 WHERE tarefa = -1748432747221 - 44;
UPDATE agenda_resposta_formulario SET tarefa = 52924 WHERE tarefa = -1748432990295 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52924 WHERE tarefa = -1748432990295 - 44;
UPDATE agenda_resposta_formulario SET tarefa = 52925 WHERE tarefa = -1748433045884 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52925 WHERE tarefa = -1748433045884 - 44;
UPDATE agenda_resposta_formulario SET tarefa = 52926 WHERE tarefa = -1748435198310 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52926 WHERE tarefa = -1748435198310 - 44;
UPDATE agenda_resposta_formulario SET tarefa = 52927 WHERE tarefa = -1748438614872 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52927 WHERE tarefa = -1748438614872 - 44;
UPDATE agenda_resposta_formulario SET tarefa = 52928 WHERE tarefa = -1748438619900 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52928 WHERE tarefa = -1748438619900 - 44;
UPDATE agenda_resposta_formulario SET tarefa = 52929 WHERE tarefa = -1748438621881 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52929 WHERE tarefa = -1748438621881 - 44;
UPDATE agenda_resposta_formulario SET tarefa = 52930 WHERE tarefa = -1748442607819 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52930 WHERE tarefa = -1748442607819 - 44;
UPDATE agenda_tarefa SET idPrimario = 52931 WHERE idPrimario = -1748959138563 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52931 WHERE tarefa = -1748959138563 - 44;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 44;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 44;
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 ; - 44;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 44;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 44;
statusNaoFinalizado - 44;
statusNaoFinalizado - 44;
statusNaoFinalizado - 44;
statusNaoFinalizado - 44;
statusNaoFinalizado - 44;
statusNaoFinalizado - 44;
statusNaoFinalizado - 44;
statusNaoFinalizado - 44;
statusNaoFinalizado - 44;
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 = '52931'
GROUP BY a.idPrimario - 44;
Binding output parameters deu certo: ( 0) - 44;
FORM VENDEDOR 20 - 44;
GRUPO->
Grupos:
- 44;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
- 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1748959284287','3','','100072','2025-06-03','2025-06-03','08:00:00','18:00:00','Finalizado','44','44','','-1748959284287','','') - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1748959348151','2','','100072','2025-06-03','2025-06-03','08:00:00','09:00:00','Finalizado','44','44','','-1748959348151','','') - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1748960290706','4','','100072','2025-06-03','2025-06-03','17:00:00','18:00:00','Finalizado','44','44','','-1748960290706','','') - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1748960290706','4','','100072','2025-06-03','2025-06-03','','','','','44','32105401','-1748960332078','','') - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1748959348151','2','','100072','2025-06-03','2025-06-03','','','','','44','32105401','-1748960334891','','') - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1748959284287','3','','100072','2025-06-03','2025-06-03','','','','','44','21376901','-1748963978966','','') - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1748959284287','3','','100072','2025-06-03','2025-06-03','','','','','44','31032801','-1748963994832','','') - 44;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1748959284287','3','','100072','2025-06-03','2025-06-03','','','','','44','30201001','-1748964020754','','') - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748960334891','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748960334891','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748960334891','418','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748960334891','419','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','303','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','305','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','207','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','114','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','208','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963978966','117','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','303','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','305','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','207','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','114','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','208','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748964020754','117','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','303','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','305','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','207','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','114','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','208','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1748963994832','117','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 44;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1748959284287','','','') - 44;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1748959348151','','','') - 44;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1748960290706','','','') - 44;
UPDATE agenda_tarefa SET idPrimario = 52933 WHERE idPrimario = -1748959284287 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52933 WHERE tarefa = -1748959284287 - 44;
UPDATE agenda_tarefa SET idPrimario = 52934 WHERE idPrimario = -1748959348151 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52934 WHERE tarefa = -1748959348151 - 44;
UPDATE agenda_tarefa SET idPrimario = 52935 WHERE idPrimario = -1748960290706 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52935 WHERE tarefa = -1748960290706 - 44;
UPDATE agenda_resposta_formulario SET tarefa = 52936 WHERE tarefa = -1748960332078 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52936 WHERE tarefa = -1748960332078 - 44;
UPDATE agenda_resposta_formulario SET tarefa = 52937 WHERE tarefa = -1748960334891 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52937 WHERE tarefa = -1748960334891 - 44;
UPDATE agenda_resposta_formulario SET tarefa = 52938 WHERE tarefa = -1748963978966 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52938 WHERE tarefa = -1748963978966 - 44;
UPDATE agenda_resposta_formulario SET tarefa = 52939 WHERE tarefa = -1748963994832 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52939 WHERE tarefa = -1748963994832 - 44;
UPDATE agenda_resposta_formulario SET tarefa = 52940 WHERE tarefa = -1748964020754 - 44;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 52940 WHERE tarefa = -1748964020754 - 44;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 44;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 44;
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 ; - 44;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 44;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 44;
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 = '52933'
GROUP BY a.idPrimario - 44;
Binding output parameters deu certo: ( 0) - 44;
FORM VENDEDOR 20 - 44;
GRUPO->Grupos:
| Grupo |
Qtd |
Percentual |
| 1 - 1 - PLANEJAR |
9 |
100.00 |
| 2 - 2 - LEITURA DE LOJA |
12 |
75.00 |
| 3 - 3 - EXECUTAR |
3 |
66.67 |
| 4 - 4 - NEGOCIAR |
21 |
80.95 |
| 5 - 5 - ANALISAR |
6 |
66.67 |
- 44;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
| 1 - 1 - PLANEJAR |
101 - 1 - É UMA VISITA NO ROTEIRO DO DIA? |
3 |
100.00 |
| 1 - 1 - PLANEJAR |
302 - 2 - TEM AS PARCIAIS (TOPS/CAMPANHAS), ANALISOU E SABE O QUE PRECISA FAZER NESTA VISITA/CLIENTE (ITENS QUE PRECISA POSITIVAR, O QUE FALTA PARA BATER 10KG, TAREFA ANTERIOR, ETC)? |
3 |
100.00 |
| 1 - 1 - PLANEJAR |
303 - 3 - REVISOU CADASTRO (CRÉDITO) E HISTÓRICO DE COMPRA? |
3 |
100.00 |
| 2 - 2 - LEITURA DE LOJA |
106 - 5 - ANALISOU NOSSO PREÇOS VS PREÇO SUGERIDO? PRODUTOS ESTÃO PRECIFICADOS? |
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 |
206 - 7 - LOJA TEM PONTO EXTRA? (ILHA/EXPOSITOR/PILHA NA ENTRADA DA LOJA/SACHE NO BALCÃO) |
3 |
0.00 |
| 2 - 2 - LEITURA DE LOJA |
305 - 4 - FEZ O LEVANTAMENTO DE ESTOQUE USANDO O HISTÓRICO DO APP DE VENDAS(PREÇO E CAMPANHA) OU A FICHA IMPRESSA? |
3 |
100.00 |
| 3 - 3 - EXECUTAR |
207 - 8 - EXECUTOU NO PONTO DE VENDA (ABASTECEU, COLOCOU MATERIAL, ORGANIZOU, ARRUMOU E/OU COLOCOU PREÇO)? (SE NÃO, CORRIJA PREÇOS DE IMEDIATO) |
3 |
66.67 |
| 4 - 4 - NEGOCIAR |
109 - 14 - FEZ UMA ABORDAGEM/ABERTURA EFICIENTE? (CORDIAL, POSITIVA, ADEQUADA AO PERFIL DESTE CLIENTE) |
3 |
100.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)? |
3 |
100.00 |
| 4 - 4 - NEGOCIAR |
111 - 12 - INICIOU A VENDA POR TOP 20 DO PET ESPECIALIZADO (SE FOR FILIAL OU COMPRADOR AUSENTE, FEZ A CONTAGEM ESTOQUE TOP 20)? |
3 |
100.00 |
| 4 - 4 - NEGOCIAR |
112 - 17 - NEGOCIOU AS RUPTURAS (SE FOR FILIAL OU COMPRADOR AUSENTE, FEZ A CONTAGEM ESTOQUE E IDENTIFICOU RUPTURA)? |
3 |
100.00 |
| 4 - 4 - NEGOCIAR |
114 - 14 - NEGOCIOU A VENDA DE ALGUM ITEM QUE ESTA EM PREMIO/CAMPANHA PARA O VENDEDOR? (SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR SIM) |
3 |
100.00 |
| 4 - 4 - NEGOCIAR |
208 - 15 - CONSEGUIU REVERTER OBJEÇÃO(SE NÃO TEVE=RESPOSTA SIM)?SE NÃO CONSEGUIR REVERTER ESTE É UM TEMA PARA ABORDAR NO FEEDBACK, INCLUIR NAS TAREFA/AGENDA FUTURA. QUAL A OBJEÇÃO, COMO REVERTER, DICAS, TREINAR, ETC SE FOR FILIAL OU COMPRADOR AUSENTE MAR |
3 |
33.33 |
| 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 |
| 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 |
100.00 |
| 5 - 5 - ANALISAR |
117 - 20 - TRASMITIU AO SAIR DO CLIENTE? (PEDIDO, NÃO VENDA OU VENDA DIGITADO POSTERIOR) |
3 |
33.33 |
- 44;
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 = '52934'
GROUP BY a.idPrimario - 44;
Binding output parameters deu certo: ( 0) - 44;
FORM VENDEDOR 20 - 44;
GRUPO->Grupos:
| Grupo |
Qtd |
Percentual |
| 50 - 10 - ANALISE SITUACIONAL DO COLABORADOR |
4 |
25.00 |
- 44;
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 |
- 44;
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 = '52935'
GROUP BY a.idPrimario - 44;
Binding output parameters deu certo: ( 0) - 44;
FORM VENDEDOR 20 - 44;
GRUPO->Grupos:
- 44;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
- 44;
statusNaoFinalizado - 44;
statusNaoFinalizado - 44;
statusNaoFinalizado - 44;
statusNaoFinalizado - 44;
statusNaoFinalizado - 44;