Commit 487233bc10741939d7b6b80dd1940dfd457556af
1 parent
f55d8957
Exists in
master
and in
6 other branches
Correção de consulta SQL em SQLServer
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
rn/ReceberProcedimentoRN.php
| ... | ... | @@ -1864,10 +1864,10 @@ class ReceberProcedimentoRN extends InfraRN |
| 1864 | 1864 | { |
| 1865 | 1865 | //Valida se algum documento ficou sem seus respectivos componentes digitais |
| 1866 | 1866 | $sql = "select doc.id_documento as id_documento, comp.hash_conteudo as hash_conteudo |
| 1867 | - from procedimento proc join documento doc on (doc.id_procedimento = proc.id_procedimento) | |
| 1867 | + from procedimento proced join documento doc on (doc.id_procedimento = proced.id_procedimento) | |
| 1868 | 1868 | join protocolo prot_doc on (doc.id_documento = prot_doc.id_protocolo) |
| 1869 | 1869 | left join md_pen_componente_digital comp on (comp.id_documento = doc.id_documento) |
| 1870 | - where proc.id_procedimento = $parNumIdProcedimento and prot_doc.sta_protocolo = 'R' and | |
| 1870 | + where proced.id_procedimento = $parNumIdProcedimento and prot_doc.sta_protocolo = 'R' and | |
| 1871 | 1871 | not exists (select 1 from anexo where anexo.id_protocolo = prot_doc.id_protocolo) "; |
| 1872 | 1872 | |
| 1873 | 1873 | //Adiciona filtro adicional para verificar pelo identificador do documento, caso parâmetro tenha sido informado | ... | ... |