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;
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;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1737644447332','2','','1013','2025-01-23','2025-01-23','08:00:00','14:00:00','Finalizado','46','46','','-1737644447332','','') - 46;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1737644447332','2','','1013','2025-01-23','2025-01-23','','','','','46','393101','-1737644467827','','') - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1737644467827','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1737644467827','417','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1737644467827','418','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1737644467827','419','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 46;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1737644447332','2025-01-24','','Realizar treinamento Reppos, Fluxo do Pedido, Vassouras Condor e Boas Vindas') - 46;
UPDATE agenda_tarefa SET idPrimario = 50976 WHERE idPrimario = -1737644447332 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 50976 WHERE tarefa = -1737644447332 - 46;
UPDATE agenda_resposta_formulario SET tarefa = 50977 WHERE tarefa = -1737644467827 - 46;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 50977 WHERE tarefa = -1737644467827 - 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 = '50976'
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 |
100.00 |
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR |
418 - É C3 (MOTIVAÇÃO BAIXA / HABILIDADE ALTA)? ESTILO DO LÍDER = APOIAR. |
1 |
0.00 |
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR |
419 - É C4 (MOTIVAÇÃO ALTA / HABILIDADE ALTA)? ESTILO DO LÍDER = DELEGAR. |
1 |
0.00 |
- 46;
statusNaoFinalizado - 46;