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;
DELETE FROM agenda_tarefa WHERE idPrimario ='-1726604778035' - 90;
DELETE FROM agenda_tarefa WHERE idPrimario ='-1726604526609' - 90;
DELETE FROM agenda_tarefa WHERE idPrimario ='-1726605497418' - 90;
DELETE FROM agenda_tarefa WHERE idPrimario ='-1726605531859' - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('35076','1','','0','2024-09-17','2024-09-17','','','','','90','','-1726604255182','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('35076','1','','497','2024-09-17','2024-09-17','','','','','90','','-1726604305582','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('35076','1','','497','2024-09-17','2024-09-17','','','','','90','','-1726604324478','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('35076','1','','497','2024-09-17','2024-09-17','','','','','90','20290901','-1726604331787','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('35076','1','','497','2024-09-17','2024-09-17','','','','','90','20322201','-1726604558196','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('35076','1','','497','2024-09-17','2024-09-17','','','','','90','30881401','-1726604679004','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('35076','1','','497','2024-09-17','2024-09-17','','','','','90','30518101','-1726604769316','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('35076','1','','497','2024-09-17','2024-09-17','','','','','90','20296501','-1726604845567','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('35076','1','','497','2024-09-17','2024-09-17','','','','','90','20522301','-1726604900551','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('35076','1','','497','2024-09-17','2024-09-17','','','','','90','30615601','-1726605053213','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1726605160757','1','','497','2024-09-17','2024-09-17','08:00:00','18:00:00','Finalizado','90','90','','-1726605160757','','') - 90;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1726605477291','1','','497','2024-09-17','2024-09-17','08:00:00','18:00:00','Pendente','90','90','','-1726605477291','','') - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','422','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','212','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','116','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604331787','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','204','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','422','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604558196','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','204','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','205','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','422','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604769316','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','204','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','205','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','420','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','212','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','116','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604845567','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','102','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','420','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','212','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','116','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604900551','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','422','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1726604679004','215','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 90;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1726605160757','2024-10-24','Ter mais clientes na base','prospectar novos clientes,melhorar a positivacoes') - 90;
UPDATE agenda_resposta_formulario SET tarefa = 35092 WHERE tarefa = -1726604255182 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35092 WHERE tarefa = -1726604255182 - 90;
UPDATE agenda_resposta_formulario SET tarefa = 35093 WHERE tarefa = -1726604305582 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35093 WHERE tarefa = -1726604305582 - 90;
UPDATE agenda_resposta_formulario SET tarefa = 35094 WHERE tarefa = -1726604324478 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35094 WHERE tarefa = -1726604324478 - 90;
UPDATE agenda_resposta_formulario SET tarefa = 35095 WHERE tarefa = -1726604331787 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35095 WHERE tarefa = -1726604331787 - 90;
UPDATE agenda_resposta_formulario SET tarefa = 35096 WHERE tarefa = -1726604558196 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35096 WHERE tarefa = -1726604558196 - 90;
UPDATE agenda_resposta_formulario SET tarefa = 35097 WHERE tarefa = -1726604679004 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35097 WHERE tarefa = -1726604679004 - 90;
UPDATE agenda_resposta_formulario SET tarefa = 35098 WHERE tarefa = -1726604769316 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35098 WHERE tarefa = -1726604769316 - 90;
UPDATE agenda_resposta_formulario SET tarefa = 35099 WHERE tarefa = -1726604845567 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35099 WHERE tarefa = -1726604845567 - 90;
UPDATE agenda_resposta_formulario SET tarefa = 35100 WHERE tarefa = -1726604900551 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35100 WHERE tarefa = -1726604900551 - 90;
UPDATE agenda_resposta_formulario SET tarefa = 35101 WHERE tarefa = -1726605053213 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35101 WHERE tarefa = -1726605053213 - 90;
UPDATE agenda_tarefa SET idPrimario = 35102 WHERE idPrimario = -1726605160757 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35102 WHERE tarefa = -1726605160757 - 90;
UPDATE agenda_tarefa SET idPrimario = 35103 WHERE idPrimario = -1726605477291 - 90;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 35103 WHERE tarefa = -1726605477291 - 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;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '35102'
GROUP BY a.idPrimario - 90;
Binding output parameters deu certo: ( 0) - 90;
FORM VENDEDOR 20 - 90;
GRUPO->
Grupos:
- 90;
Respostas->Questões:
Grupo | Questões | Qtd | Percentual |
---|
- 90;
statusNaoFinalizado - 90;