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; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1764074115290','5','','0','2025-11-25','2025-11-24','08:00:00','18:00:00','Finalizado','110','110','','-1764074115290','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1764074158894','2','','850','2025-11-25','2025-11-25','08:00:00','18:00:00','Finalizado','110','110','','-1764074158894','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1764074172752','1','','850','2025-11-25','2025-11-25','08:00:00','18:00:00','Pendente','110','110','','-1764074172752','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1764074183302','4','','850','2025-11-25','2025-11-25','08:00:00','18:00:00','Pendente','110','110','','-1764074183302','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1764074158894','2','','850','2025-11-25','2025-11-25','','','','','110','32094001','-1764074472760','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1764074172752','1','','850','2025-11-25','2025-11-25','','','','','110','143101','-1764074482776','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1764074172752','1','','850','2025-11-25','2025-11-25','','','','','110','596501','-1764074493710','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1764074172752','1','','850','2025-11-25','2025-11-25','','','','','110','32083601','-1764074511712','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1764074172752','1','','850','2025-11-25','2025-11-25','','','','','110','32173201','-1764074519589','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1764074172752','1','','850','2025-11-25','2025-11-25','','','','','110','19958401','-1764074529304','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1764074172752','1','','850','2025-11-25','2025-11-25','','','','','110','32055801','-1764074542460','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1764074172752','1','','850','2025-11-25','2025-11-25','','','','','110','32162001','-1764074557203','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1764074172752','1','','850','2025-11-25','2025-11-25','','','','','110','30920501','-1764074569208','','') - 110; INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1764074172752','1','','850','2025-11-25','2025-11-25','','','','','110','20278701','-1764074575991','','') - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','103','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','422','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074493710','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','304','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','420','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','212','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','116','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074511712','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','420','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','112','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','209','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','210','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','212','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','115','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','116','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','214','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074519589','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074472760','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074472760','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074472760','418','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110; INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1764074472760','419','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1764074115290','2025-11-25','','Reunião equipe de vendas ...') - 110; INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1764074158894','2025-12-25','','Djeison reclama que não tem cliente pra volume e está desanimado com isso.') - 110; UPDATE agenda_tarefa SET idPrimario = 54894 WHERE idPrimario = -1764074115290 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54894 WHERE tarefa = -1764074115290 - 110; UPDATE agenda_tarefa SET idPrimario = 54895 WHERE idPrimario = -1764074158894 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54895 WHERE tarefa = -1764074158894 - 110; UPDATE agenda_tarefa SET idPrimario = 54896 WHERE idPrimario = -1764074172752 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54896 WHERE tarefa = -1764074172752 - 110; UPDATE agenda_tarefa SET idPrimario = 54897 WHERE idPrimario = -1764074183302 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54897 WHERE tarefa = -1764074183302 - 110; UPDATE agenda_resposta_formulario SET tarefa = 54898 WHERE tarefa = -1764074472760 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54898 WHERE tarefa = -1764074472760 - 110; UPDATE agenda_resposta_formulario SET tarefa = 54899 WHERE tarefa = -1764074482776 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54899 WHERE tarefa = -1764074482776 - 110; UPDATE agenda_resposta_formulario SET tarefa = 54900 WHERE tarefa = -1764074493710 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54900 WHERE tarefa = -1764074493710 - 110; UPDATE agenda_resposta_formulario SET tarefa = 54901 WHERE tarefa = -1764074511712 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54901 WHERE tarefa = -1764074511712 - 110; UPDATE agenda_resposta_formulario SET tarefa = 54902 WHERE tarefa = -1764074519589 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54902 WHERE tarefa = -1764074519589 - 110; UPDATE agenda_resposta_formulario SET tarefa = 54903 WHERE tarefa = -1764074529304 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54903 WHERE tarefa = -1764074529304 - 110; UPDATE agenda_resposta_formulario SET tarefa = 54904 WHERE tarefa = -1764074542460 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54904 WHERE tarefa = -1764074542460 - 110; UPDATE agenda_resposta_formulario SET tarefa = 54905 WHERE tarefa = -1764074557203 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54905 WHERE tarefa = -1764074557203 - 110; UPDATE agenda_resposta_formulario SET tarefa = 54906 WHERE tarefa = -1764074569208 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54906 WHERE tarefa = -1764074569208 - 110; UPDATE agenda_resposta_formulario SET tarefa = 54907 WHERE tarefa = -1764074575991 - 110; UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54907 WHERE tarefa = -1764074575991 - 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 = '54894' 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; 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 = '54895' 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 100.00
50 - 10 - ANALISE SITUACIONAL DO COLABORADOR 419 - É C4 (MOTIVAÇÃO ALTA / HABILIDADE ALTA)? ESTILO DO LÍDER = DELEGAR. 1 0.00
- 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110; statusNaoFinalizado - 110;