INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729008054205','1','Francisco fugiu do cliente. Já chegou dizendo que o pedido chegou essa semana, induzindo o cliente a dizer que não iria comprar. É negativo em relação a introdução de novos itens','548','2024-10-15','2024-10-15','','','','','46','20187301','-1729008260557','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729008054205','1','','548','2024-10-15','2024-10-15','10:00:00','11:00:00','Finalizado','46','46','','-1729008054205','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729008054205','1','','548','2024-10-15','2024-10-15','','','','','46','16900701','-1729008586112','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729011065064','1','','548','2024-10-15','2024-10-15','14:00:00','18:00:00','Finalizado','46','46','','-1729011065064','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729011065064','1','Cliente atende por Corupá','548','2024-10-15','2024-10-15','','','','','46','32009101','-1729011088917','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729011065064','1','','548','2024-10-15','2024-10-15','','','','','46','32004001','-1729011871831','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729011065064','1','','548','2024-10-15','2024-10-15','','','','','46','13625701','-1729012976611','','') - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','102','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','304','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','420','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','212','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','116','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008260557','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','102','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','304','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','420','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','212','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','116','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729008586112','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','102','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','204','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','205','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','422','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011088917','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','102','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','103','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','304','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','420','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','212','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','116','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729012976611','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','102','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','304','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','420','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','212','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','116','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729011871831','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1729008054205','2024-10-16','Fazer abordagem positiva. Mostrar a pauta e fazer levantamento','') - 46;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1729011065064','','','') - 46;
UPDATE agenda_resposta_formulario SET tarefa = 40264 WHERE tarefa = -1729008260557 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40264 WHERE tarefa = -1729008260557 - 46;
UPDATE agenda_tarefa SET idPrimario = 40265 WHERE idPrimario = -1729008054205 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40265 WHERE tarefa = -1729008054205 - 46;
UPDATE agenda_resposta_formulario SET tarefa = 40266 WHERE tarefa = -1729008586112 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40266 WHERE tarefa = -1729008586112 - 46;
UPDATE agenda_tarefa SET idPrimario = 40267 WHERE idPrimario = -1729011065064 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40267 WHERE tarefa = -1729011065064 - 46;
UPDATE agenda_resposta_formulario SET tarefa = 40268 WHERE tarefa = -1729011088917 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40268 WHERE tarefa = -1729011088917 - 46;
UPDATE agenda_resposta_formulario SET tarefa = 40269 WHERE tarefa = -1729011871831 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40269 WHERE tarefa = -1729011871831 - 46;
UPDATE agenda_resposta_formulario SET tarefa = 40270 WHERE tarefa = -1729012976611 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40270 WHERE tarefa = -1729012976611 - 46;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 46;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 46;
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 ; - 46;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 46;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 46;
statusNaoFinalizado - 46;
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 = '40265'
GROUP BY a.idPrimario - 46;
Binding output parameters deu certo: ( 0) - 46;
FORM VENDEDOR 20 - 46;
GRUPO->
Grupos:
Grupo |
Qtd |
Percentual |
1 - 1 - PLANEJAR |
6 |
66.67 |
2 - 2 - LEITURA DE LOJA |
10 |
10.00 |
3 - 3 - EXECUTAR |
10 |
20.00 |
4 - 4 - NEGOCIAR |
14 |
0.00 |
5 - 5 - ANALISAR |
8 |
25.00 |
- 46;
Respostas->Questões:
Grupo | Questes | Qtd | Percentual |
---|
1 - 1 - PLANEJAR |
101 - 1 - É UMA VISITA NO ROTEIRO DO DIA? |
2 |
100.00 |
1 - 1 - PLANEJAR |
102 - 2 - TEM AS PARCIAIS (MSL/TOPS/CAMPANHAS), ANALISOU E SABE O QUE PRECISA FAZER NESTA VISITA/CLIENTE (ITENS QUE PRECISA POSITIVAR, TAREFA ANTERIOR, ETC)? |
2 |
0.00 |
1 - 1 - PLANEJAR |
103 - 3 - REVISOU CADASTRO (CRÉDITO) E HISTÓRICO DE COMPRA? |
2 |
100.00 |
2 - 2 - LEITURA DE LOJA |
105 - 4 - FEZ O LEVANTAMENTO DE ESTOQUE USANDO O HISTÓRICO DO APP DE VENDAS? |
2 |
50.00 |
2 - 2 - LEITURA DE LOJA |
107 - 6 - ANALISOU CONCORRENTES (ESPAÇO, MIX E PREÇOS)? IDENTIFICOU OPORTUNIDADES COM OLHO NA CONCORRÊNCIA? |
2 |
0.00 |
2 - 2 - LEITURA DE LOJA |
204 - 7 - LOJA TEM DE AÇÕES DE MERCHANDISING? (CLIP STRIP, CROSS MERCHANDISING, WOBLER, CARTAZ, ETC...) SE NÃO TINHA, COLOCOU ALGUM ITEM? |
2 |
0.00 |
2 - 2 - LEITURA DE LOJA |
205 - 8 - LOJA TEM AÇÕES DE MERCHANDISING? (PONTA, ILHA, ENCARTE, EXPOSITOR) |
2 |
0.00 |
2 - 2 - LEITURA DE LOJA |
304 - 5 - ANALISOU NOSSO PREÇOS VS PREÇO SUGERIDO? PRODUTOS ESTÃO PRECIFICADOS CORRETAMENTE (MESMO PREÇO ENTRE FRAGRÂNCIAS E SIMILARES/AGRUPAMENTOS)? CORRIGIU O PROBLEMA? |
2 |
0.00 |
3 - 3 - EXECUTAR |
108 - 9 - ANALISOU A VALIDADE DOS PRODUTOS? TOMOU ATITUDE PARA RESOLVER O PROBLEMA? |
2 |
0.00 |
3 - 3 - EXECUTAR |
307 - 10 - FOI NO DEPÓSITO? VERIFICOU SE TEM MERCADORIA NO DEPÓSITO E NÃO TEM NA ÁREA DE VENDAS? RESOLVEU PROBLEMAS? |
2 |
100.00 |
3 - 3 - EXECUTAR |
420 - 11 - VERIFICOU TROCAS E PROBLEMAS COM PRODUTOS? RESOLVER IMEDIATAMENTE. |
2 |
0.00 |
3 - 3 - EXECUTAR |
421 - 12 - ABASTECEU, COLOCOU MATERIAL, ORGANIZOU GÔNDOLAS E RUPTURAS, ARRUMOU E/OU COLOCOU PREÇO? |
2 |
0.00 |
3 - 3 - EXECUTAR |
422 - 13 - CORRIGIU MERCADORIA QUE NÃO TINHA NO PONTO NATURAL MAS TINHA NO PONTO EXTRA? CASO ESTEJA OK, MARCAR SIM. |
2 |
0.00 |
4 - 4 - NEGOCIAR |
109 - 14 - FEZ UMA ABORDAGEM/ABERTURA EFICIENTE? (CORDIAL, POSITIVA, ADEQUADA AO PERFIL DESTE CLIENTE) |
2 |
0.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)? |
2 |
0.00 |
4 - 4 - NEGOCIAR |
112 - 17 - NEGOCIOU AS RUPTURAS (SE FOR FILIAL OU COMPRADOR AUSENTE, FEZ A CONTAGEM ESTOQUE E IDENTIFICOU RUPTURA)? |
2 |
0.00 |
4 - 4 - NEGOCIAR |
113 - 19 - FEZ INTRODUÇÃO DE ALGUM ITEM (CADASTRO NOVO)? |
2 |
0.00 |
4 - 4 - NEGOCIAR |
209 - 18 - TINHA ARGUMENTOS PARA REVERTER OBJEÇÃO (SE NÃO TEVE=RESPOSTA SIM) SE NÃO CONSEGUIU REVERTER, TEMA PARA FEEDBACK E INCLUIR NAS TAREFAS/AGENDA FUTURA. QUAL A OBJEÇÃO, COMO REVERTER, DICAS, TREINAR, ETC. (SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR |
2 |
0.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) |
2 |
0.00 |
4 - 4 - NEGOCIAR |
212 - 20 - "TIROU O PEDIDO? (NÃO É ORÇAMENTO! É PEDIDO PARA FATURAR JÁ!!)
(SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR SIM) |
2 |
0.00 |
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) |
2 |
0.00 |
5 - 5 - ANALISAR |
116 - 21 - "AO SAIR DO CLIENTE REFORÇOU O QUE FOI COMBINADO?
(VALOR DO PEDIDO/DATA/ESPAÇO/PREÇO/RUPTURAS/CAMPANHAS/ITENS INTRODUZIR)" |
2 |
0.00 |
5 - 5 - ANALISAR |
214 - 22 - REVISOU O PEDIDO ANTES DE ENVIAR (PREÇOS, COMBOS, BONIFICAÇÕES, PRAZO, ETC...)? |
2 |
0.00 |
5 - 5 - ANALISAR |
215 - 23 - TRASMITIU AO SAIR DO CLIENTE? (PEDIDO, NÃO VENDA OU VENDA DIGITADO POSTERIOR) |
2 |
100.00 |
- 46;
statusNaoFinalizado - 46;
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 = '40267'
GROUP BY a.idPrimario - 46;
Binding output parameters deu certo: ( 0) - 46;
FORM VENDEDOR 20 - 46;
GRUPO->Grupos:
Grupo |
Qtd |
Percentual |
1 - 1 - PLANEJAR |
9 |
55.56 |
2 - 2 - LEITURA DE LOJA |
15 |
33.33 |
3 - 3 - EXECUTAR |
15 |
33.33 |
4 - 4 - NEGOCIAR |
21 |
23.81 |
5 - 5 - ANALISAR |
12 |
41.67 |
- 46;
Respostas->Questões:
Grupo | Questes | Qtd | Percentual |
---|
1 - 1 - PLANEJAR |
101 - 1 - É UMA VISITA NO ROTEIRO DO DIA? |
3 |
100.00 |
1 - 1 - PLANEJAR |
102 - 2 - TEM AS PARCIAIS (MSL/TOPS/CAMPANHAS), ANALISOU E SABE O QUE PRECISA FAZER NESTA VISITA/CLIENTE (ITENS QUE PRECISA POSITIVAR, TAREFA ANTERIOR, ETC)? |
3 |
0.00 |
1 - 1 - PLANEJAR |
103 - 3 - REVISOU CADASTRO (CRÉDITO) E HISTÓRICO DE COMPRA? |
3 |
66.67 |
2 - 2 - LEITURA DE LOJA |
105 - 4 - FEZ O LEVANTAMENTO DE ESTOQUE USANDO O HISTÓRICO DO APP DE VENDAS? |
3 |
33.33 |
2 - 2 - LEITURA DE LOJA |
107 - 6 - ANALISOU CONCORRENTES (ESPAÇO, MIX E PREÇOS)? IDENTIFICOU OPORTUNIDADES COM OLHO NA CONCORRÊNCIA? |
3 |
33.33 |
2 - 2 - LEITURA DE LOJA |
204 - 7 - LOJA TEM DE AÇÕES DE MERCHANDISING? (CLIP STRIP, CROSS MERCHANDISING, WOBLER, CARTAZ, ETC...) SE NÃO TINHA, COLOCOU ALGUM ITEM? |
3 |
33.33 |
2 - 2 - LEITURA DE LOJA |
205 - 8 - LOJA TEM AÇÕES DE MERCHANDISING? (PONTA, ILHA, ENCARTE, EXPOSITOR) |
3 |
33.33 |
2 - 2 - LEITURA DE LOJA |
304 - 5 - ANALISOU NOSSO PREÇOS VS PREÇO SUGERIDO? PRODUTOS ESTÃO PRECIFICADOS CORRETAMENTE (MESMO PREÇO ENTRE FRAGRÂNCIAS E SIMILARES/AGRUPAMENTOS)? CORRIGIU O PROBLEMA? |
3 |
33.33 |
3 - 3 - EXECUTAR |
108 - 9 - ANALISOU A VALIDADE DOS PRODUTOS? TOMOU ATITUDE PARA RESOLVER O PROBLEMA? |
3 |
33.33 |
3 - 3 - EXECUTAR |
307 - 10 - FOI NO DEPÓSITO? VERIFICOU SE TEM MERCADORIA NO DEPÓSITO E NÃO TEM NA ÁREA DE VENDAS? RESOLVEU PROBLEMAS? |
3 |
33.33 |
3 - 3 - EXECUTAR |
420 - 11 - VERIFICOU TROCAS E PROBLEMAS COM PRODUTOS? RESOLVER IMEDIATAMENTE. |
3 |
33.33 |
3 - 3 - EXECUTAR |
421 - 12 - ABASTECEU, COLOCOU MATERIAL, ORGANIZOU GÔNDOLAS E RUPTURAS, ARRUMOU E/OU COLOCOU PREÇO? |
3 |
33.33 |
3 - 3 - EXECUTAR |
422 - 13 - CORRIGIU MERCADORIA QUE NÃO TINHA NO PONTO NATURAL MAS TINHA NO PONTO EXTRA? CASO ESTEJA OK, MARCAR SIM. |
3 |
33.33 |
4 - 4 - NEGOCIAR |
109 - 14 - FEZ UMA ABORDAGEM/ABERTURA EFICIENTE? (CORDIAL, POSITIVA, ADEQUADA AO PERFIL DESTE CLIENTE) |
3 |
0.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)? |
3 |
33.33 |
4 - 4 - NEGOCIAR |
112 - 17 - NEGOCIOU AS RUPTURAS (SE FOR FILIAL OU COMPRADOR AUSENTE, FEZ A CONTAGEM ESTOQUE E IDENTIFICOU RUPTURA)? |
3 |
33.33 |
4 - 4 - NEGOCIAR |
113 - 19 - FEZ INTRODUÇÃO DE ALGUM ITEM (CADASTRO NOVO)? |
3 |
33.33 |
4 - 4 - NEGOCIAR |
209 - 18 - TINHA ARGUMENTOS PARA REVERTER OBJEÇÃO (SE NÃO TEVE=RESPOSTA SIM) SE NÃO CONSEGUIU REVERTER, TEMA PARA FEEDBACK E INCLUIR NAS TAREFAS/AGENDA FUTURA. QUAL A OBJEÇÃO, COMO REVERTER, DICAS, TREINAR, ETC. (SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR |
3 |
0.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) |
3 |
33.33 |
4 - 4 - NEGOCIAR |
212 - 20 - "TIROU O PEDIDO? (NÃO É ORÇAMENTO! É PEDIDO PARA FATURAR JÁ!!)
(SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR SIM) |
3 |
33.33 |
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) |
3 |
33.33 |
5 - 5 - ANALISAR |
116 - 21 - "AO SAIR DO CLIENTE REFORÇOU O QUE FOI COMBINADO?
(VALOR DO PEDIDO/DATA/ESPAÇO/PREÇO/RUPTURAS/CAMPANHAS/ITENS INTRODUZIR)" |
3 |
33.33 |
5 - 5 - ANALISAR |
214 - 22 - REVISOU O PEDIDO ANTES DE ENVIAR (PREÇOS, COMBOS, BONIFICAÇÕES, PRAZO, ETC...)? |
3 |
0.00 |
5 - 5 - ANALISAR |
215 - 23 - TRASMITIU AO SAIR DO CLIENTE? (PEDIDO, NÃO VENDA OU VENDA DIGITADO POSTERIOR) |
3 |
100.00 |
- 46;
statusNaoFinalizado - 46;
statusNaoFinalizado - 46;
statusNaoFinalizado - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729090530902','1','','548','2024-10-16','2024-10-16','08:00:00','12:00:00','Finalizado','46','46','','-1729090530902','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729090530902','1','','548','2024-10-16','2024-10-16','','','','','46','20482201','-1729090573606','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729090530902','1','','548','2024-10-16','2024-10-16','','','','','46','20491301','-1729090642142','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729090530902','1','','548','2024-10-16','2024-10-16','','','','','46','20434801','-1729090714815','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729090530902','1','','548','2024-10-16','2024-10-16','','','','','46','30819001','-1729090764517','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729090530902','1','Saiu pedido. cliente queria comprar nugget. acabou comprando davene','548','2024-10-16','2024-10-16','','','','','46','548701','-1729090800072','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729090930809','2','','548','2024-10-16','2024-10-16','12:00:00','12:00:00','Finalizado','46','46','','-1729090930809','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729090930809','2','','548','2024-10-16','2024-10-16','','','','','46','32004701','-1729090937592','','') - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','102','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','304','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','212','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','116','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090573606','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','102','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','204','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','205','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','304','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','116','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090642142','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','102','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','304','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','420','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','110','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','212','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','116','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090714815','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','102','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','304','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','420','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','109','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090800072','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','101','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','102','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','105','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','107','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','304','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','116','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090764517','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090937592','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090937592','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090937592','418','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1729090937592','419','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1729090530902','','','') - 46;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1729090930809','','Chico está desmotivado. com a soma de problemas financeiros e pessoais. Devido ao baixo faturamento no último ano','') - 46;
UPDATE agenda_tarefa SET idPrimario = 40278 WHERE idPrimario = -1729090530902 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40278 WHERE tarefa = -1729090530902 - 46;
UPDATE agenda_resposta_formulario SET tarefa = 40279 WHERE tarefa = -1729090573606 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40279 WHERE tarefa = -1729090573606 - 46;
UPDATE agenda_resposta_formulario SET tarefa = 40280 WHERE tarefa = -1729090642142 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40280 WHERE tarefa = -1729090642142 - 46;
UPDATE agenda_resposta_formulario SET tarefa = 40281 WHERE tarefa = -1729090714815 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40281 WHERE tarefa = -1729090714815 - 46;
UPDATE agenda_resposta_formulario SET tarefa = 40282 WHERE tarefa = -1729090764517 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40282 WHERE tarefa = -1729090764517 - 46;
UPDATE agenda_resposta_formulario SET tarefa = 40283 WHERE tarefa = -1729090800072 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40283 WHERE tarefa = -1729090800072 - 46;
UPDATE agenda_tarefa SET idPrimario = 40284 WHERE idPrimario = -1729090930809 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40284 WHERE tarefa = -1729090930809 - 46;
UPDATE agenda_resposta_formulario SET tarefa = 40285 WHERE tarefa = -1729090937592 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40285 WHERE tarefa = -1729090937592 - 46;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 46;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 46;
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 ; - 46;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 46;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 46;
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 = '40278'
GROUP BY a.idPrimario - 46;
Binding output parameters deu certo: ( 0) - 46;
FORM VENDEDOR 20 - 46;
GRUPO->Grupos:
Grupo |
Qtd |
Percentual |
1 - 1 - PLANEJAR |
15 |
60.00 |
2 - 2 - LEITURA DE LOJA |
25 |
12.00 |
3 - 3 - EXECUTAR |
25 |
16.00 |
4 - 4 - NEGOCIAR |
35 |
40.00 |
5 - 5 - ANALISAR |
20 |
45.00 |
- 46;
Respostas->Questões:
Grupo | Questes | Qtd | Percentual |
---|
1 - 1 - PLANEJAR |
101 - 1 - É UMA VISITA NO ROTEIRO DO DIA? |
5 |
80.00 |
1 - 1 - PLANEJAR |
102 - 2 - TEM AS PARCIAIS (MSL/TOPS/CAMPANHAS), ANALISOU E SABE O QUE PRECISA FAZER NESTA VISITA/CLIENTE (ITENS QUE PRECISA POSITIVAR, TAREFA ANTERIOR, ETC)? |
5 |
0.00 |
1 - 1 - PLANEJAR |
103 - 3 - REVISOU CADASTRO (CRÉDITO) E HISTÓRICO DE COMPRA? |
5 |
100.00 |
2 - 2 - LEITURA DE LOJA |
105 - 4 - FEZ O LEVANTAMENTO DE ESTOQUE USANDO O HISTÓRICO DO APP DE VENDAS? |
5 |
20.00 |
2 - 2 - LEITURA DE LOJA |
107 - 6 - ANALISOU CONCORRENTES (ESPAÇO, MIX E PREÇOS)? IDENTIFICOU OPORTUNIDADES COM OLHO NA CONCORRÊNCIA? |
5 |
0.00 |
2 - 2 - LEITURA DE LOJA |
204 - 7 - LOJA TEM DE AÇÕES DE MERCHANDISING? (CLIP STRIP, CROSS MERCHANDISING, WOBLER, CARTAZ, ETC...) SE NÃO TINHA, COLOCOU ALGUM ITEM? |
5 |
20.00 |
2 - 2 - LEITURA DE LOJA |
205 - 8 - LOJA TEM AÇÕES DE MERCHANDISING? (PONTA, ILHA, ENCARTE, EXPOSITOR) |
5 |
20.00 |
2 - 2 - LEITURA DE LOJA |
304 - 5 - ANALISOU NOSSO PREÇOS VS PREÇO SUGERIDO? PRODUTOS ESTÃO PRECIFICADOS CORRETAMENTE (MESMO PREÇO ENTRE FRAGRÂNCIAS E SIMILARES/AGRUPAMENTOS)? CORRIGIU O PROBLEMA? |
5 |
0.00 |
3 - 3 - EXECUTAR |
108 - 9 - ANALISOU A VALIDADE DOS PRODUTOS? TOMOU ATITUDE PARA RESOLVER O PROBLEMA? |
5 |
0.00 |
3 - 3 - EXECUTAR |
307 - 10 - FOI NO DEPÓSITO? VERIFICOU SE TEM MERCADORIA NO DEPÓSITO E NÃO TEM NA ÁREA DE VENDAS? RESOLVEU PROBLEMAS? |
5 |
0.00 |
3 - 3 - EXECUTAR |
420 - 11 - VERIFICOU TROCAS E PROBLEMAS COM PRODUTOS? RESOLVER IMEDIATAMENTE. |
5 |
60.00 |
3 - 3 - EXECUTAR |
421 - 12 - ABASTECEU, COLOCOU MATERIAL, ORGANIZOU GÔNDOLAS E RUPTURAS, ARRUMOU E/OU COLOCOU PREÇO? |
5 |
20.00 |
3 - 3 - EXECUTAR |
422 - 13 - CORRIGIU MERCADORIA QUE NÃO TINHA NO PONTO NATURAL MAS TINHA NO PONTO EXTRA? CASO ESTEJA OK, MARCAR SIM. |
5 |
0.00 |
4 - 4 - NEGOCIAR |
109 - 14 - FEZ UMA ABORDAGEM/ABERTURA EFICIENTE? (CORDIAL, POSITIVA, ADEQUADA AO PERFIL DESTE CLIENTE) |
5 |
20.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)? |
5 |
60.00 |
4 - 4 - NEGOCIAR |
112 - 17 - NEGOCIOU AS RUPTURAS (SE FOR FILIAL OU COMPRADOR AUSENTE, FEZ A CONTAGEM ESTOQUE E IDENTIFICOU RUPTURA)? |
5 |
40.00 |
4 - 4 - NEGOCIAR |
113 - 19 - FEZ INTRODUÇÃO DE ALGUM ITEM (CADASTRO NOVO)? |
5 |
40.00 |
4 - 4 - NEGOCIAR |
209 - 18 - TINHA ARGUMENTOS PARA REVERTER OBJEÇÃO (SE NÃO TEVE=RESPOSTA SIM) SE NÃO CONSEGUIU REVERTER, TEMA PARA FEEDBACK E INCLUIR NAS TAREFAS/AGENDA FUTURA. QUAL A OBJEÇÃO, COMO REVERTER, DICAS, TREINAR, ETC. (SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR |
5 |
0.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) |
5 |
60.00 |
4 - 4 - NEGOCIAR |
212 - 20 - "TIROU O PEDIDO? (NÃO É ORÇAMENTO! É PEDIDO PARA FATURAR JÁ!!)
(SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR SIM) |
5 |
60.00 |
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) |
5 |
20.00 |
5 - 5 - ANALISAR |
116 - 21 - "AO SAIR DO CLIENTE REFORÇOU O QUE FOI COMBINADO?
(VALOR DO PEDIDO/DATA/ESPAÇO/PREÇO/RUPTURAS/CAMPANHAS/ITENS INTRODUZIR)" |
5 |
20.00 |
5 - 5 - ANALISAR |
214 - 22 - REVISOU O PEDIDO ANTES DE ENVIAR (PREÇOS, COMBOS, BONIFICAÇÕES, PRAZO, ETC...)? |
5 |
40.00 |
5 - 5 - ANALISAR |
215 - 23 - TRASMITIU AO SAIR DO CLIENTE? (PEDIDO, NÃO VENDA OU VENDA DIGITADO POSTERIOR) |
5 |
100.00 |
- 46;
statusNaoFinalizado - 46;
statusNaoFinalizado - 46;
statusNaoFinalizado - 46;
statusNaoFinalizado - 46;
statusNaoFinalizado - 46;
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 = '40284'
GROUP BY a.idPrimario - 46;
Binding output parameters deu certo: ( 0) - 46;
FORM VENDEDOR 20 - 46;
GRUPO->Grupos:
Grupo |
Qtd |
Percentual |
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR |
4 |
25.00 |
- 46;
Respostas->Questões:
Grupo | Questes | Qtd | Percentual |
---|
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 |
0.00 |
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR |
418 - É C3 (MOTIVAÇÃO BAIXA / HABILIDADE ALTA)? ESTILO DO LÍDER = APOIAR. |
1 |
100.00 |
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR |
419 - É C4 (MOTIVAÇÃO ALTA / HABILIDADE ALTA)? ESTILO DO LÍDER = DELEGAR. |
1 |
0.00 |
- 46;
statusNaoFinalizado - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729118628586','7','Trabalhando off autorizado Michael. Meus pais vieram de SP','46','2024-10-16','2024-10-09','08:00:00','18:30:00','Finalizado','46','46','','-1729118628586','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729118652007','7','Trabalhando off autorizado Michael. Meus pais vieram de SP','46','2024-10-16','2024-10-10','08:00:00','18:00:00','Finalizado','46','46','','-1729118652007','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729118681629','7','Trabalhando off autorizado Michael. Meus pais vieram de SP','46','2024-10-16','2024-10-11','08:00:00','18:30:00','Finalizado','46','46','','-1729118681629','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729118752092','7','Dividindo as metas que chegaram hoje e digitando no sistema. Aproveitando já que meus pais vem amanhã ','46','2024-10-16','2024-10-08','08:00:00','18:30:00','Finalizado','46','46','','-1729118752092','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1729118572368','7','Resolvendo os recibos do Pi que precisam ser corrigidos. Planilha Good Card. Planilha Sustagem. Planilha de planejamento Yoki .\n\nAcompanhando o projeto dominar. Enviando acompanhamentos para o vendedor.','46','2024-10-16','2024-10-14','08:00:00','18:30:00','Finalizado','46','46','','-1729118572368','','') - 46;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1729118628586','','','') - 46;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1729118652007','','','') - 46;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1729118681629','','','') - 46;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1729118752092','','','') - 46;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1729118572368','','','') - 46;
UPDATE agenda_tarefa SET idPrimario = 40286 WHERE idPrimario = -1729118628586 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40286 WHERE tarefa = -1729118628586 - 46;
UPDATE agenda_tarefa SET idPrimario = 40287 WHERE idPrimario = -1729118652007 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40287 WHERE tarefa = -1729118652007 - 46;
UPDATE agenda_tarefa SET idPrimario = 40288 WHERE idPrimario = -1729118681629 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40288 WHERE tarefa = -1729118681629 - 46;
UPDATE agenda_tarefa SET idPrimario = 40289 WHERE idPrimario = -1729118752092 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40289 WHERE tarefa = -1729118752092 - 46;
UPDATE agenda_tarefa SET idPrimario = 40290 WHERE idPrimario = -1729118572368 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 40290 WHERE tarefa = -1729118572368 - 46;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 46;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 46;
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 ; - 46;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 46;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 46;
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 = '40286'
GROUP BY a.idPrimario - 46;
Binding output parameters deu certo: ( 0) - 46;
FORM VENDEDOR 20 - 46;
GRUPO->Grupos:
- 46;
Respostas->Questões:
Grupo | Questes | Qtd | Percentual |
---|
- 46;
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 = '40287'
GROUP BY a.idPrimario - 46;
Binding output parameters deu certo: ( 0) - 46;
FORM VENDEDOR 20 - 46;
GRUPO->Grupos:
- 46;
Respostas->Questões:
Grupo | Questes | Qtd | Percentual |
---|
- 46;
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 = '40288'
GROUP BY a.idPrimario - 46;
Binding output parameters deu certo: ( 0) - 46;
FORM VENDEDOR 20 - 46;
GRUPO->Grupos:
- 46;
Respostas->Questões:
Grupo | Questes | Qtd | Percentual |
---|
- 46;
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 = '40289'
GROUP BY a.idPrimario - 46;
Binding output parameters deu certo: ( 0) - 46;
FORM VENDEDOR 20 - 46;
GRUPO->Grupos:
- 46;
Respostas->Questões:
Grupo | Questes | Qtd | Percentual |
---|
- 46;
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 = '40290'
GROUP BY a.idPrimario - 46;
Binding output parameters deu certo: ( 0) - 46;
FORM VENDEDOR 20 - 46;
GRUPO->Grupos:
- 46;
Respostas->Questões:
Grupo | Questes | Qtd | Percentual |
---|
- 46;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 46;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 46;
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 ; - 46;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 46;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 46;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 46;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 46;
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 ; - 46;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 46;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 46;