DELETE FROM agenda_tarefa WHERE idPrimario ='35080' - 90; DELETE FROM agenda_tarefa WHERE idPrimario ='-1726753734173' - 90; DELETE FROM agenda_tarefa WHERE idPrimario ='-1726753861290' - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1726753556478','1','','0','2024-09-19','1969-12-31','08:00:00','11:00:00','Pendente','90','90','','-1726753556478','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1726753596628','1','','498','2024-09-19','2024-09-19','08:00:00','11:00:00','Pendente','90','90','','-1726753596628','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1726753596628','1','','498','2024-09-19','2024-09-19','','','','','90','677001','-1726753674721','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1726753786932','2','','498','2024-09-19','2024-09-19','11:00:00','12:00:00','Pendente','90','90','','-1726753786932','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1726753786932','2','','498','2024-09-19','2024-09-19','','','','','90','677001','-1726753812976','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1726753842666','3','','499','2024-09-19','2024-09-19','08:00:00','10:00:00','Pendente','90','90','','-1726753842666','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1726753842666','3','','499','2024-09-19','2024-09-19','','','','','90','677004','-1726753855569','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1726753920787','2','','499','2024-09-19','2024-09-19','11:00:00','12:00:00','Pendente','90','90','','-1726753920787','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1726753920787','2','','499','2024-09-19','2024-09-19','','','','','90','677004','-1726753954067','','') - 90; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1726774269094','4','explicação do novo PI, projeto dominar ','4003','2024-09-19','2024-09-19','15:00:00','17:00:00','Pendente','90','90','','-1726774269094','','') - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','101','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','205','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','422','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753674721','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753812976','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753812976','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753812976','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753812976','419','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','101','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','303','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','206','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','305','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','207','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','114','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','208','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753855569','117','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753954067','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753954067','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753954067','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726753954067','419','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90; UPDATE agenda_tarefa SET idPrimario = 35187 WHERE idPrimario = -1726753556478 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35187 WHERE tarefa = -1726753556478 - 90; UPDATE agenda_tarefa SET idPrimario = 35188 WHERE idPrimario = -1726753596628 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35188 WHERE tarefa = -1726753596628 - 90; UPDATE agenda_resposta_formulario SET tarefa = 35189 WHERE tarefa = -1726753674721 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35189 WHERE tarefa = -1726753674721 - 90; UPDATE agenda_tarefa SET idPrimario = 35190 WHERE idPrimario = -1726753786932 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35190 WHERE tarefa = -1726753786932 - 90; UPDATE agenda_resposta_formulario SET tarefa = 35191 WHERE tarefa = -1726753812976 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35191 WHERE tarefa = -1726753812976 - 90; UPDATE agenda_tarefa SET idPrimario = 35192 WHERE idPrimario = -1726753842666 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35192 WHERE tarefa = -1726753842666 - 90; UPDATE agenda_resposta_formulario SET tarefa = 35193 WHERE tarefa = -1726753855569 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35193 WHERE tarefa = -1726753855569 - 90; UPDATE agenda_tarefa SET idPrimario = 35194 WHERE idPrimario = -1726753920787 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35194 WHERE tarefa = -1726753920787 - 90; UPDATE agenda_resposta_formulario SET tarefa = 35195 WHERE tarefa = -1726753954067 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35195 WHERE tarefa = -1726753954067 - 90; UPDATE agenda_tarefa SET idPrimario = 35196 WHERE idPrimario = -1726774269094 - 90; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35196 WHERE tarefa = -1726774269094 - 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; statusNaoFinalizado - 90; statusNaoFinalizado - 90; statusNaoFinalizado - 90;