INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1762350135020','7','DESLIGAMENTO RENAN\n','0','2025-11-05','2025-11-03','08:00:00','10:00:00','Pendente','40','40','','-1762350135020','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1762350148698','6','','0','2025-11-05','2025-11-03','10:00:00','18:30:00','Pendente','40','40','','-1762350148698','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1762350230882','7','TREINAMENTO VENDEDORA JESSICA POA ZN','0','2025-11-05','2025-11-04','10:00:00','15:00:00','Pendente','40','40','','-1762350230882','','') - 40; UPDATE agenda_tarefa SET assunto ='7', observacao = '', vendedor='0', dataCriacao = '2025-10-17', data = '2025-10-27', horario_inicial = '08:00:00', horario_final = '18:00:00', status = 'Finalizado', usuario = '40', supervisor = '40', clientes = '', resumo= '' WHERE id = '54486' - 40; UPDATE agenda_tarefa SET assunto ='3', observacao = '', vendedor='100128', dataCriacao = '2025-10-30', data = '2025-10-30', horario_inicial = '09:00:00', horario_final = '18:00:00', status = 'Finalizado', usuario = '40', supervisor = '40', clientes = '', resumo= '' WHERE id = '54489' - 40; UPDATE agenda_tarefa SET assunto ='2', observacao = '', vendedor='100128', dataCriacao = '2025-10-30', data = '2025-10-30', horario_inicial = '08:30:00', horario_final = '09:00:00', status = 'Finalizado', usuario = '40', supervisor = '40', clientes = '', resumo= '' WHERE id = '54524' - 40; UPDATE agenda_tarefa SET assunto ='4', observacao = '', vendedor='100128', dataCriacao = '2025-10-30', data = '2025-10-30', horario_inicial = '17:30:00', horario_final = '18:00:00', status = 'Finalizado', usuario = '40', supervisor = '40', clientes = '', resumo= '' WHERE id = '54525' - 40; UPDATE agenda_tarefa SET assunto ='7', observacao = 'DESLOCAMENTO SM POA', vendedor='0', dataCriacao = '2025-10-30', data = '2025-10-28', horario_inicial = '08:00:00', horario_final = '18:00:00', status = 'Finalizado', usuario = '40', supervisor = '40', clientes = '', resumo= '' WHERE id = '54487' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54535','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54535','417','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54535','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54535','419','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','303','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','206','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','305','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','207','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','114','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','208','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54529','117','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','303','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','206','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','305','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','207','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','114','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','208','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54530','117','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','303','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','305','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','207','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','114','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','208','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54531','117','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','303','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','106','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','305','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','207','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','114','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','208','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54532','117','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','303','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','206','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','305','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','207','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','111','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','114','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','208','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54533','117','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','302','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','303','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','106','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','206','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','305','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','207','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','111','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','114','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','208','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54534','117','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54539','423','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54539','424','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54539','425','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54539','426','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54539','427','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54539','404','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54539','428','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54539','429','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54539','430','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54539','431','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54539','432','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54539','433','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54539','434','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54539','435','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54539','436','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('54539','437','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 40; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('54487','','','') - 40; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('54486','','','') - 40; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('54524','','','') - 40; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('54489','','','') - 40; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('54525','','','') - 40; UPDATE agenda_tarefa SET idPrimario = 54556 WHERE idPrimario = -1762350135020 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54556 WHERE tarefa = -1762350135020 - 40; UPDATE agenda_tarefa SET idPrimario = 54557 WHERE idPrimario = -1762350148698 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54557 WHERE tarefa = -1762350148698 - 40; UPDATE agenda_tarefa SET idPrimario = 54558 WHERE idPrimario = -1762350230882 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54558 WHERE tarefa = -1762350230882 - 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; 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 = '54486' GROUP BY a.idPrimario - 40; Binding output parameters deu certo: ( 0) - 40; FORM VENDEDOR 20 - 40; GRUPO->

Grupos:

Grupo Qtd Percentual
- 40; Respostas->

Questões:

GrupoQuestesQtdPercentual
- 40; 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 = '54489' GROUP BY a.idPrimario - 40; Binding output parameters deu certo: ( 0) - 40; FORM VENDEDOR 20 - 40; GRUPO->

Grupos:

Grupo Qtd Percentual
1 - 1 - PLANEJAR 18 100.00
2 - 2 - LEITURA DE LOJA 24 62.50
3 - 3 - EXECUTAR 6 100.00
4 - 4 - NEGOCIAR 42 71.43
5 - 5 - ANALISAR 12 100.00
- 40; Respostas->

Questões:

GrupoQuestesQtdPercentual
1 - 1 - PLANEJAR 101 - 1 - É UMA VISITA NO ROTEIRO DO DIA? 6 100.00
1 - 1 - PLANEJAR 302 - 2 - TEM AS PARCIAIS (TOPS/CAMPANHAS), ANALISOU E SABE O QUE PRECISA FAZER NESTA VISITA/CLIENTE (ITENS QUE PRECISA POSITIVAR, O QUE FALTA PARA BATER 10KG, TAREFA ANTERIOR, ETC)? 6 100.00
1 - 1 - PLANEJAR 303 - 3 - REVISOU CADASTRO (CRÉDITO) E HISTÓRICO DE COMPRA? 6 100.00
2 - 2 - LEITURA DE LOJA 106 - 5 - ANALISOU NOSSO PREÇOS VS PREÇO SUGERIDO? PRODUTOS ESTÃO PRECIFICADOS? 6 83.33
2 - 2 - LEITURA DE LOJA 107 - 6 - ANALISOU CONCORRENTES (ESPAÇO, MIX E PREÇOS)? IDENTIFICOU OPORTUNIDADES COM OLHO NA CONCORRÊNCIA? 6 100.00
2 - 2 - LEITURA DE LOJA 206 - 7 - LOJA TEM PONTO EXTRA? (ILHA/EXPOSITOR/PILHA NA ENTRADA DA LOJA/SACHE NO BALCÃO) 6 50.00
2 - 2 - LEITURA DE LOJA 305 - 4 - FEZ O LEVANTAMENTO DE ESTOQUE USANDO O HISTÓRICO DO APP DE VENDAS(PREÇO E CAMPANHA) OU A FICHA IMPRESSA? 6 16.67
3 - 3 - EXECUTAR 207 - 8 - EXECUTOU NO PONTO DE VENDA (ABASTECEU, COLOCOU MATERIAL, ORGANIZOU, ARRUMOU E/OU COLOCOU PREÇO)? (SE NÃO, CORRIJA PREÇOS DE IMEDIATO) 6 100.00
4 - 4 - NEGOCIAR 109 - 14 - FEZ UMA ABORDAGEM/ABERTURA EFICIENTE? (CORDIAL, POSITIVA, ADEQUADA AO PERFIL DESTE CLIENTE) 6 100.00
4 - 4 - NEGOCIAR 110 - 15 - APRESENTOU A PAUTA AO CLIENTE (MESMO SENDO FILIAL OU COMPRADOR AUSENTE, APRESENTE AO GESTOR DA LOJA ITENS QUE DESEJA INTRODUZIR)? 6 100.00
4 - 4 - NEGOCIAR 111 - 12 - INICIOU A VENDA POR TOP 20 DO PET ESPECIALIZADO (SE FOR FILIAL OU COMPRADOR AUSENTE, FEZ A CONTAGEM ESTOQUE TOP 20)? 6 33.33
4 - 4 - NEGOCIAR 112 - 17 - NEGOCIOU AS RUPTURAS (SE FOR FILIAL OU COMPRADOR AUSENTE, FEZ A CONTAGEM ESTOQUE E IDENTIFICOU RUPTURA)? 6 100.00
4 - 4 - NEGOCIAR 114 - 14 - NEGOCIOU A VENDA DE ALGUM ITEM QUE ESTA EM PREMIO/CAMPANHA PARA O VENDEDOR? (SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR SIM) 6 50.00
4 - 4 - NEGOCIAR 208 - 15 - CONSEGUIU REVERTER OBJEÇÃO(SE NÃO TEVE=RESPOSTA SIM)?SE NÃO CONSEGUIR REVERTER ESTE É UM TEMA PARA ABORDAR NO FEEDBACK, INCLUIR NAS TAREFA/AGENDA FUTURA. QUAL A OBJEÇÃO, COMO REVERTER, DICAS, TREINAR, ETC SE FOR FILIAL OU COMPRADOR AUSENTE MAR 6 50.00
4 - 4 - NEGOCIAR 210 - 17 - TIROU O PEDIDO? (NÃO É ORÇAMENTO! É PEDIDO PARA FATURAR JÁ!!) (SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR SIM) 6 66.67
5 - 5 - ANALISAR 115 - 18 - AO SAIR DO CLIENTE REFORÇOU O QUE FOI COMBINADO? (VALOR DO PEDIDO/DATA/ESPAÇO/PREÇO/RUPTURAS/CAMPANHAS/ITENS INTRODUZIR) 6 100.00
5 - 5 - ANALISAR 117 - 20 - TRASMITIU AO SAIR DO CLIENTE? (PEDIDO, NÃO VENDA OU VENDA DIGITADO POSTERIOR) 6 100.00
- 40; 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 = '54524' GROUP BY a.idPrimario - 40; Binding output parameters deu certo: ( 0) - 40; FORM VENDEDOR 20 - 40; GRUPO->

Grupos:

Grupo Qtd Percentual
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR 4 25.00
- 40; Respostas->

Questões:

GrupoQuestesQtdPercentual
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR 416 - É C1 (MOTIVAÇÃO BAIXA / HABILIDADE BAIXA)? ESTILO DO LÍDER = DIRIGIR. 1 0.00
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR 417 - É C2 (MOTIVAÇÃO ALTA / HABILIDADE BAIXA)? ESTILO DO LÍDER = GUIAR. 1 100.00
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR 418 - É C3 (MOTIVAÇÃO BAIXA / HABILIDADE ALTA)? ESTILO DO LÍDER = APOIAR. 1 0.00
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR 419 - É C4 (MOTIVAÇÃO ALTA / HABILIDADE ALTA)? ESTILO DO LÍDER = DELEGAR. 1 0.00
- 40; 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 = '54525' GROUP BY a.idPrimario - 40; Binding output parameters deu certo: ( 0) - 40; FORM VENDEDOR 20 - 40; GRUPO->

Grupos:

Grupo Qtd Percentual
10 - 6 - SABEDORIA 5 80.00
11 - 7 - ENGAJAMENTO 3 66.67
12 - 8 - RELACIONAMENTO 3 100.00
13 - 9 - HABILIDADES E PASSOS DA VISITA PLENA 5 80.00
- 40; Respostas->

Questões:

GrupoQuestesQtdPercentual
10 - 6 - SABEDORIA 423 - 24 - DOMÍNIO DA FERRAMENTA APP DE VENDAS? (RESPOSTA NÃO - MENCIONE NA OBSERVAÇÃO E MARQUE TAREFA DE TREINAMENTO) 1 100.00
10 - 6 - SABEDORIA 424 - 25 - CONHECE OS PRODUTOS E SABE ARGUMENTAR SOBRE ELES? (RESPOSTA NÃO - MENCIONE NA OBSERVAÇÃO A(S) MARCA(S) QUE TEM DIFICULDADE E SUPERVISOR DEVE MARCAR TAREFA DE TREINAMENTO) 1 100.00
10 - 6 - SABEDORIA 425 - 26 - DEMONSTRA CONHECIMENTO DO CHAM? PEÇA PARA EXPLICAR COMBOS. (RESPOSTA NÃO - MENCIONE NA OBSERVAÇÃO EM QUAL (IS) TEM DIFICULDADE E EXPLIQUE DE IMEDIATO) 1 100.00
10 - 6 - SABEDORIA 426 - 27 - ESTÁ UTILIZANDO A PLATAFORMA DA UMENTOR? (VERIFIQUE SE ESTÁ FAZENDO OS CURSOS INDICADOS E ESPONTÂNEOS) 1 0.00
10 - 6 - SABEDORIA 427 - 28 - SABE QUAIS SÃO, TEM ACOMPANHAMENTO E SABE COMO ESTÁ NAS CAMPANHAS DE VENDAS? FAÇA PERGUNTAS ABERTAS E OBSERVE AS RESPOSTAS (RESPOSTA NÃO - MENCIONE NA OBSERVAÇÃO EM QUAL (IS) TEM DIFICULDADE E EXPLIQUE DE IMEDIATO) 1 100.00
11 - 7 - ENGAJAMENTO 404 - É UMA PESSOA ENGAJADA COM OS METAS DE POSITIVAÇÃO E LANÇAMENTOS? (VOCE DEVE ANALISAR PARCIAIS DE LANÇAMENTOS E POSITIVAÇÃO. SE RARAMENTE BATE, NÃO É ENGAJADO). (VENDEDOR NOVO ATÉ 3 MESES ... PODE MARCAR NÃO) 1 100.00
11 - 7 - ENGAJAMENTO 428 - 29 - É UMA PESSOA ENGAJADA COM OS METAS DE POSITIVAÇÃO E LANÇAMENTOS? (VOCE DEVE ANALISAR PARCIAIS DE LANÇAMENTOS E POSITIVAÇÃO. SE RARAMENTE BATE, NÃO É ENGAJADO). (VENDEDOR NOVO ATÉ 3 MESES ... PODE MARCAR NÃO) 1 0.00
11 - 7 - ENGAJAMENTO 429 - 30 - PARTICIPA NAS REUNIÕES OU NO GRUPO WHATSAPP DE FORMA ATIVA? (DÁ IDÉIAS, POSTA TRABALHOS, COMPARTILHA ASSUNTOS, ALERTA PARA ERROS) 1 100.00
12 - 8 - RELACIONAMENTO 430 - 31 - ESTÁ DEVIDAMENTE IDENTIFICADO (UNIFORME, CRACHÁ)? 1 100.00
12 - 8 - RELACIONAMENTO 431 - 32 - CONHECE OS CLIENTES (COMPRADOR/DONO/QUEM DECIDE) E É CONHECIDO? 1 100.00
12 - 8 - RELACIONAMENTO 432 - 33 - TEM POSTURA OTIMISTA, ACREDITA NO PRODUTO E NA EMPRESA, NÃO DEIXA OS PROBLEMAS ATRAPALHAREM SEU DIA E POSTURA, TEM BOA REPUTAÇÃO JUNTO A CLIENTES? (SE ESTÁ PESSIMISTA OU POSTURA NEGATIVA, VOCE DEVE INVESTIGAR A CAUSA (PROFISSIONAL OU PESSOAL). 1 100.00
13 - 9 - HABILIDADES E PASSOS DA VISITA PLENA 433 - 34 - CUMPRE OS PASSOS DE PLANEJAMENTO DA VISITA? (ABAIXO DE 65% É NÃO) 1 100.00
13 - 9 - HABILIDADES E PASSOS DA VISITA PLENA 434 - 35 - CUMPRE OS PASSOS DE LEVANTAMENTO DA VISITA? (ABAIXO DE 65% É NÃO) 1 0.00
13 - 9 - HABILIDADES E PASSOS DA VISITA PLENA 435 - 36 - CUMPRE OS PASSOS DE EXECUÇÃO DA VISITA? (ABAIXO DE 65% É NÃO) 1 100.00
13 - 9 - HABILIDADES E PASSOS DA VISITA PLENA 436 - 37 - CUMPRE OS PASSOS DE NEGOCIAÇÃO DA VISITA? (ABAIXO DE 65% É NÃO) 1 100.00
13 - 9 - HABILIDADES E PASSOS DA VISITA PLENA 437 - 38 - CUMPRE OS PASSOS DE AVALIAÇÃO DA VISITA? (ABAIXO DE 65% É NÃO) 1 100.00
- 40; 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 = '54487' GROUP BY a.idPrimario - 40; Binding output parameters deu certo: ( 0) - 40; FORM VENDEDOR 20 - 40; GRUPO->

Grupos:

Grupo Qtd Percentual
- 40; Respostas->

Questões:

GrupoQuestesQtdPercentual
- 40; DELETE FROM agenda_tarefa WHERE idPrimario ='54558' - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1762350286140','3','','100130','2025-11-05','2025-11-04','16:00:00','18:00:00','Pendente','40','40','','-1762350286140','','') - 40; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1762350273834','2','','100130','2025-11-05','2025-11-04','15:00:00','18:00:00','Pendente','40','40','','-1762350273834','','') - 40; UPDATE agenda_tarefa SET idPrimario = 54559 WHERE idPrimario = -1762350286140 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54559 WHERE tarefa = -1762350286140 - 40; UPDATE agenda_tarefa SET idPrimario = 54560 WHERE idPrimario = -1762350273834 - 40; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54560 WHERE tarefa = -1762350273834 - 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; UPDATE agenda_tarefa SET assunto ='2', observacao = '', vendedor='100130', dataCriacao = '2025-11-05', data = '2025-11-04', horario_inicial = '10:00:00', horario_final = '15:00:00', status = 'Pendente', usuario = '40', supervisor = '40', clientes = '', resumo= '' WHERE id = '54560' - 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;