DELETE FROM agenda_tarefa WHERE idPrimario ='51922' - 110; DELETE FROM agenda_tarefa WHERE idPrimario ='-1742842959420' - 110; DELETE FROM agenda_tarefa WHERE idPrimario ='-1742842959420' - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1742835409488','2','','838','2025-03-24','2025-03-24','08:00:00','18:00:00','Finalizado','110','110','','-1742835409488','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1742835409488','2','','838','2025-03-24','2025-03-24','','','','','110','32111601','-1742835429119','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1742835546561','1','','838','2025-03-24','2025-03-24','08:00:00','18:00:00','Finalizado','110','110','','-1742835546561','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1742835546561','1','','838','2025-03-24','2025-03-24','','','','','110','1016901','-1742835574830','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1742835546561','1','','838','2025-03-24','2025-03-24','','','','','110','323601','-1742838609642','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1742835546561','1','','838','2025-03-24','2025-03-24','','','','','110','19944201','-1742841127953','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1742842959420','2','','838','2025-03-24','2025-03-24','','','','','110','32111601','-1742842965975','','') - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835429119','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835429119','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835429119','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835429119','419','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','204','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','205','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','422','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742835574830','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742838609642','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1742841127953','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1742835409488','2025-05-24','','busca de 300 mil mês') - 110; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1742835546561','2025-04-24','','ramalhete fort marca forta ..') - 110; UPDATE agenda_tarefa SET idPrimario = 51929 WHERE idPrimario = -1742835409488 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 51929 WHERE tarefa = -1742835409488 - 110; UPDATE agenda_resposta_formulario SET tarefa = 51930 WHERE tarefa = -1742835429119 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 51930 WHERE tarefa = -1742835429119 - 110; UPDATE agenda_tarefa SET idPrimario = 51931 WHERE idPrimario = -1742835546561 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 51931 WHERE tarefa = -1742835546561 - 110; UPDATE agenda_resposta_formulario SET tarefa = 51932 WHERE tarefa = -1742835574830 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 51932 WHERE tarefa = -1742835574830 - 110; UPDATE agenda_resposta_formulario SET tarefa = 51933 WHERE tarefa = -1742838609642 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 51933 WHERE tarefa = -1742838609642 - 110; UPDATE agenda_resposta_formulario SET tarefa = 51934 WHERE tarefa = -1742841127953 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 51934 WHERE tarefa = -1742841127953 - 110; UPDATE agenda_resposta_formulario SET tarefa = 51935 WHERE tarefa = -1742842965975 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 51935 WHERE tarefa = -1742842965975 - 110; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110; 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 ; - 110; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 110; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 110; 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 = '51929' GROUP BY a.idPrimario - 110; Binding output parameters deu certo: ( 0) - 110; FORM VENDEDOR 20 - 110; GRUPO->

Grupos:

Grupo Qtd Percentual
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR 4 25.00
- 110; 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 0.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 100.00
- 110; statusNaoFinalizado - 110; 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 = '51931' GROUP BY a.idPrimario - 110; Binding output parameters deu certo: ( 0) - 110; FORM VENDEDOR 20 - 110; GRUPO->

Grupos:

Grupo Qtd Percentual
1 - 1 - PLANEJAR 9 100.00
2 - 2 - LEITURA DE LOJA 15 73.33
3 - 3 - EXECUTAR 15 73.33
4 - 4 - NEGOCIAR 21 100.00
5 - 5 - ANALISAR 12 100.00
- 110; Respostas->

Questões:

GrupoQuestesQtdPercentual
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 100.00
1 - 1 - PLANEJAR 103 - 3 - REVISOU CADASTRO (CRÉDITO) E HISTÓRICO DE COMPRA? 3 100.00
2 - 2 - LEITURA DE LOJA 105 - 4 - FEZ O LEVANTAMENTO DE ESTOQUE USANDO O HISTÓRICO DO APP DE VENDAS? 3 100.00
2 - 2 - LEITURA DE LOJA 107 - 6 - ANALISOU CONCORRENTES (ESPAÇO, MIX E PREÇOS)? IDENTIFICOU OPORTUNIDADES COM OLHO NA CONCORRÊNCIA? 3 100.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? 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 100.00
3 - 3 - EXECUTAR 108 - 9 - ANALISOU A VALIDADE DOS PRODUTOS? TOMOU ATITUDE PARA RESOLVER O PROBLEMA? 3 100.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? 3 66.67
3 - 3 - EXECUTAR 420 - 11 - VERIFICOU TROCAS E PROBLEMAS COM PRODUTOS? RESOLVER IMEDIATAMENTE. 3 100.00
3 - 3 - EXECUTAR 421 - 12 - ABASTECEU, COLOCOU MATERIAL, ORGANIZOU GÔNDOLAS E RUPTURAS, ARRUMOU E/OU COLOCOU PREÇO? 3 66.67
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 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)? 3 100.00
4 - 4 - NEGOCIAR 112 - 17 - NEGOCIOU AS RUPTURAS (SE FOR FILIAL OU COMPRADOR AUSENTE, FEZ A CONTAGEM ESTOQUE E IDENTIFICOU RUPTURA)? 3 100.00
4 - 4 - NEGOCIAR 113 - 19 - FEZ INTRODUÇÃO DE ALGUM ITEM (CADASTRO NOVO)? 3 100.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 3 100.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 100.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) 3 100.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) 3 100.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)" 3 100.00
5 - 5 - ANALISAR 214 - 22 - REVISOU O PEDIDO ANTES DE ENVIAR (PREÇOS, COMBOS, BONIFICAÇÕES, PRAZO, ETC...)? 3 100.00
5 - 5 - ANALISAR 215 - 23 - TRASMITIU AO SAIR DO CLIENTE? (PEDIDO, NÃO VENDA OU VENDA DIGITADO POSTERIOR) 3 100.00
- 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1742896756094','999','','0','2025-03-25','2025-03-27','08:00:00','18:00:00','Finalizado','110','110','','-1742896756094','','') - 110; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1742896756094','2025-03-27','','Rota com Olinto da Condor') - 110; UPDATE agenda_tarefa SET idPrimario = 51938 WHERE idPrimario = -1742896756094 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 51938 WHERE tarefa = -1742896756094 - 110; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110; 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 ; - 110; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 110; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 110; 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 = '51938' GROUP BY a.idPrimario - 110; Binding output parameters deu certo: ( 0) - 110; FORM VENDEDOR 20 - 110; GRUPO->

Grupos:

Grupo Qtd Percentual
- 110; Respostas->

Questões:

GrupoQuestesQtdPercentual
- 110; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110; 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 ; - 110; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 110; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 110; DELETE FROM agenda_tarefa WHERE idPrimario ='-1742928740041' - 110; update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110; update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110; 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 ; - 110; update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 110; update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 110;