DELETE FROM agenda_tarefa WHERE idPrimario ='-1727907808624' - 90; DELETE FROM agenda_tarefa WHERE idPrimario ='-1727907808624' - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727907465265','1','','4009','2024-10-02','2024-10-02','08:00:00','18:00:00','Pendente','90','90','','-1727907465265','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727907465265','1','','4009','2024-10-02','2024-10-02','','','','','90','30965601','-1727907489937','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727907465265','1','','4009','2024-10-02','2024-10-02','','','','','90','31928401','-1727907587864','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727907465265','1','','4009','2024-10-02','2024-10-02','','','','','90','20193901','-1727907669569','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727907465265','1','','4009','2024-10-02','2024-10-02','','','','','90','20193501','-1727907732917','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727907808624','2','','4009','2024-10-02','2024-10-02','08:00:00','18:00:00','Pendente','90','90','','-1727907808624','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1727907808624','2','','4009','2024-10-02','2024-10-02','','','','','90','20193501','-1727907894724','','') - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','422','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907489937','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','304','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','420','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907587864','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','304','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','422','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907669569','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','204','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','422','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907732917','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907894724','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907894724','417','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907894724','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1727907894724','419','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; UPDATE agenda_tarefa SET idPrimario = 37112 WHERE idPrimario = -1727907465265 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 37112 WHERE tarefa = -1727907465265 - 90; UPDATE agenda_resposta_formulario SET tarefa = 37113 WHERE tarefa = -1727907489937 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 37113 WHERE tarefa = -1727907489937 - 90; UPDATE agenda_resposta_formulario SET tarefa = 37114 WHERE tarefa = -1727907587864 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 37114 WHERE tarefa = -1727907587864 - 90; UPDATE agenda_resposta_formulario SET tarefa = 37115 WHERE tarefa = -1727907669569 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 37115 WHERE tarefa = -1727907669569 - 90; UPDATE agenda_resposta_formulario SET tarefa = 37116 WHERE tarefa = -1727907732917 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 37116 WHERE tarefa = -1727907732917 - 90; UPDATE agenda_tarefa SET idPrimario = 37117 WHERE idPrimario = -1727907808624 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 37117 WHERE tarefa = -1727907808624 - 90; UPDATE agenda_resposta_formulario SET tarefa = 37118 WHERE tarefa = -1727907894724 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 37118 WHERE tarefa = -1727907894724 - 90; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 90; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 90; 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 ; - 90; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 90; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90;