DELETE FROM agenda_tarefa WHERE idPrimario ='-1720273207106' - 40; DELETE FROM agenda_tarefa WHERE idPrimario ='-1723212098154' - 40; DELETE FROM agenda_tarefa WHERE idPrimario ='-1723212065010' - 40; DELETE FROM agenda_tarefa WHERE idPrimario ='-1723212143754' - 40; DELETE FROM agenda_tarefa WHERE idPrimario ='-1723212329854' - 40; DELETE FROM agenda_tarefa WHERE idPrimario ='-1723212569179' - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1720273207106','3','','42','2024-07-06','2024-07-06','','','','','40','31096801','-1720273211092','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212143754','3','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212164659','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212329854','2','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212338769','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212569179','4','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212590398','','') - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','101','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','302','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','303','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','305','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','207','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','114','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','208','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','117','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','419','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','423','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','424','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','425','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','426','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','427','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','404','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','428','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','429','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','430','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','431','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','432','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','433','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','434','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','435','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','436','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','437','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1723212065010','','','') - 40; UPDATE agenda_resposta_formulario SET tarefa = 34504 WHERE tarefa = -1720273211092 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34504 WHERE tarefa = -1720273211092 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34505 WHERE tarefa = -1723212164659 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34505 WHERE tarefa = -1723212164659 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34506 WHERE tarefa = -1723212338769 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34506 WHERE tarefa = -1723212338769 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34507 WHERE tarefa = -1723212590398 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34507 WHERE tarefa = -1723212590398 - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1720273207106','3','','42','2024-07-06','2024-07-06','','','','','40','31096801','-1720273211092','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212143754','3','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212164659','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212329854','2','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212338769','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212569179','4','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212590398','','') - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','101','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','302','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','303','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','305','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','207','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','114','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','208','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','117','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','419','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','423','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','424','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','425','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','426','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','427','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','404','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','428','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','429','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','430','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','431','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','432','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','433','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','434','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','435','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','436','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','437','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1723212065010','','','') - 40; UPDATE agenda_resposta_formulario SET tarefa = 34508 WHERE tarefa = -1720273211092 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34508 WHERE tarefa = -1720273211092 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34509 WHERE tarefa = -1723212164659 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34509 WHERE tarefa = -1723212164659 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34510 WHERE tarefa = -1723212338769 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34510 WHERE tarefa = -1723212338769 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34511 WHERE tarefa = -1723212590398 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34511 WHERE tarefa = -1723212590398 - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1720273207106','3','','42','2024-07-06','2024-07-06','','','','','40','31096801','-1720273211092','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212143754','3','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212164659','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212329854','2','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212338769','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212569179','4','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212590398','','') - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','101','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','302','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','303','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','305','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','207','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','114','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','208','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','117','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','419','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','423','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','424','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','425','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','426','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','427','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','404','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','428','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','429','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','430','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','431','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','432','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','433','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','434','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','435','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','436','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','437','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1723212065010','','','') - 40; UPDATE agenda_resposta_formulario SET tarefa = 34512 WHERE tarefa = -1720273211092 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34512 WHERE tarefa = -1720273211092 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34513 WHERE tarefa = -1723212164659 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34513 WHERE tarefa = -1723212164659 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34514 WHERE tarefa = -1723212338769 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34514 WHERE tarefa = -1723212338769 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34515 WHERE tarefa = -1723212590398 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34515 WHERE tarefa = -1723212590398 - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1720273207106','3','','42','2024-07-06','2024-07-06','','','','','40','31096801','-1720273211092','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212143754','3','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212164659','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212329854','2','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212338769','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212569179','4','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212590398','','') - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','101','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','302','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','303','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','305','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','207','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','114','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','208','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','117','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','419','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','423','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','424','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','425','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','426','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','427','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','404','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','428','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','429','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','430','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','431','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','432','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','433','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','434','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','435','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','436','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','437','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1723212065010','','','') - 40; UPDATE agenda_resposta_formulario SET tarefa = 34516 WHERE tarefa = -1720273211092 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34516 WHERE tarefa = -1720273211092 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34517 WHERE tarefa = -1723212164659 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34517 WHERE tarefa = -1723212164659 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34518 WHERE tarefa = -1723212338769 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34518 WHERE tarefa = -1723212338769 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34519 WHERE tarefa = -1723212590398 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34519 WHERE tarefa = -1723212590398 - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1720273207106','3','','42','2024-07-06','2024-07-06','','','','','40','31096801','-1720273211092','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212143754','3','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212164659','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212329854','2','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212338769','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212569179','4','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212590398','','') - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','101','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','302','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','303','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','305','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','207','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','114','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','208','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','117','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','419','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','423','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','424','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','425','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','426','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','427','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','404','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','428','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','429','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','430','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','431','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','432','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','433','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','434','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','435','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','436','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','437','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1723212065010','','','') - 40; UPDATE agenda_resposta_formulario SET tarefa = 34520 WHERE tarefa = -1720273211092 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34520 WHERE tarefa = -1720273211092 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34521 WHERE tarefa = -1723212164659 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34521 WHERE tarefa = -1723212164659 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34522 WHERE tarefa = -1723212338769 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34522 WHERE tarefa = -1723212338769 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34523 WHERE tarefa = -1723212590398 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34523 WHERE tarefa = -1723212590398 - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1720273207106','3','','42','2024-07-06','2024-07-06','','','','','40','31096801','-1720273211092','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212143754','3','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212164659','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212329854','2','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212338769','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212569179','4','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212590398','','') - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','101','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','302','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','303','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','305','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','207','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','114','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','208','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','117','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','419','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','423','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','424','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','425','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','426','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','427','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','404','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','428','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','429','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','430','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','431','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','432','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','433','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','434','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','435','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','436','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','437','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1723212065010','','','') - 40; UPDATE agenda_resposta_formulario SET tarefa = 34524 WHERE tarefa = -1720273211092 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34524 WHERE tarefa = -1720273211092 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34525 WHERE tarefa = -1723212164659 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34525 WHERE tarefa = -1723212164659 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34526 WHERE tarefa = -1723212338769 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34526 WHERE tarefa = -1723212338769 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34527 WHERE tarefa = -1723212590398 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34527 WHERE tarefa = -1723212590398 - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1725458485066','3','','0','2024-09-04','2024-09-28','08:00:00','08:00:00','Pendente','40','40','','-1725458485066','','') - 40; UPDATE agenda_tarefa SET idPrimario = 34528 WHERE idPrimario = -1725458485066 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34528 WHERE tarefa = -1725458485066 - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; statusNaoFinalizado - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1720273207106','3','','42','2024-07-06','2024-07-06','','','','','40','31096801','-1720273211092','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212143754','3','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212164659','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212329854','2','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212338769','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212569179','4','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212590398','','') - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','101','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','302','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','303','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','305','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','207','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','114','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','208','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','117','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','419','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','423','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','424','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','425','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','426','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','427','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','404','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','428','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','429','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','430','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','431','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','432','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','433','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','434','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','435','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','436','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','437','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1723212065010','','','') - 40; UPDATE agenda_resposta_formulario SET tarefa = 34533 WHERE tarefa = -1720273211092 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34533 WHERE tarefa = -1720273211092 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34534 WHERE tarefa = -1723212164659 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34534 WHERE tarefa = -1723212164659 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34535 WHERE tarefa = -1723212338769 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34535 WHERE tarefa = -1723212338769 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34536 WHERE tarefa = -1723212590398 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34536 WHERE tarefa = -1723212590398 - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1725458485066','3','','0','2024-09-04','2024-09-28','08:00:00','08:00:00','Pendente','40','40','','-1725458485066','','') - 40; UPDATE agenda_tarefa SET idPrimario = 34537 WHERE idPrimario = -1725458485066 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34537 WHERE tarefa = -1725458485066 - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; statusNaoFinalizado - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1720273207106','3','','42','2024-07-06','2024-07-06','','','','','40','31096801','-1720273211092','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212143754','3','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212164659','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212329854','2','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212338769','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1723212569179','4','','42','2024-08-09','2024-08-09','','','','','40','31096801','-1723212590398','','') - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','101','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','302','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','303','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','305','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','207','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','114','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','208','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212164659','117','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212338769','419','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','423','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','424','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','425','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','426','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','427','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','404','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','428','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','429','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','430','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','431','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','432','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','433','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','434','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','435','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','436','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1723212590398','437','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1723212065010','','','') - 40; UPDATE agenda_resposta_formulario SET tarefa = 34538 WHERE tarefa = -1720273211092 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34538 WHERE tarefa = -1720273211092 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34539 WHERE tarefa = -1723212164659 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34539 WHERE tarefa = -1723212164659 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34540 WHERE tarefa = -1723212338769 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34540 WHERE tarefa = -1723212338769 - 40; UPDATE agenda_resposta_formulario SET tarefa = 34541 WHERE tarefa = -1723212590398 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 34541 WHERE tarefa = -1723212590398 - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; statusNaoFinalizado - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 40; 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 ; - 40; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 40; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 40;