Commit 31a453ac212bb0ae5b2ac50383792b62e0d3a06d
1 parent
94000393
Exists in
master
and in
21 other branches
Ajuste em chaves primárias da tabela md_pen_tramite_processado
Showing
2 changed files
with
13 additions
and
4 deletions
Show diff stats
rn/PenAtualizarSeiRN.php
@@ -1107,6 +1107,8 @@ class PenAtualizarSeiRN extends PenAtualizadorRN { | @@ -1107,6 +1107,8 @@ class PenAtualizarSeiRN extends PenAtualizadorRN { | ||
1107 | /* Contem atualizações da versao 1.1.7 do módulo */ | 1107 | /* Contem atualizações da versao 1.1.7 do módulo */ |
1108 | protected function instalarV117() { | 1108 | protected function instalarV117() { |
1109 | 1109 | ||
1110 | + $objInfraMetaBD = new InfraMetaBD($this->objInfraBanco); | ||
1111 | + | ||
1110 | /* Cadastramento de novas espécies documentais */ | 1112 | /* Cadastramento de novas espécies documentais */ |
1111 | $objEspecieDocumentalBD = new GenericoBD($this->inicializarObjInfraIBanco()); | 1113 | $objEspecieDocumentalBD = new GenericoBD($this->inicializarObjInfraIBanco()); |
1112 | $objEspecieDocumentalDTO = new EspecieDocumentalDTO(); | 1114 | $objEspecieDocumentalDTO = new EspecieDocumentalDTO(); |
@@ -1140,6 +1142,9 @@ class PenAtualizarSeiRN extends PenAtualizadorRN { | @@ -1140,6 +1142,9 @@ class PenAtualizarSeiRN extends PenAtualizadorRN { | ||
1140 | // } | 1142 | // } |
1141 | // } | 1143 | // } |
1142 | 1144 | ||
1145 | + $objInfraMetaBD->excluirChavePrimaria('md_pen_tramite_processado','pk_md_pen_tramite_processado'); | ||
1146 | + $objInfraMetaBD->adicionarChavePrimaria('md_pen_tramite_processado','pk_md_pen_tramite_processado',array('id_tramite','tipo_tramite_processo')); | ||
1147 | + | ||
1143 | //altera o parâmetro da versão de banco | 1148 | //altera o parâmetro da versão de banco |
1144 | $objInfraParametroBD = new InfraParametroBD($this->inicializarObjInfraIBanco()); | 1149 | $objInfraParametroBD = new InfraParametroBD($this->inicializarObjInfraIBanco()); |
1145 | $objInfraParametroDTO = new InfraParametroDTO(); | 1150 | $objInfraParametroDTO = new InfraParametroDTO(); |
rn/ProcessoEletronicoRN.php
@@ -170,7 +170,8 @@ class ProcessoEletronicoRN extends InfraRN { | @@ -170,7 +170,8 @@ class ProcessoEletronicoRN extends InfraRN { | ||
170 | $this->objPenWs = new BeSimple\SoapClient\SoapClient($this->strWSDL, $this->options); | 170 | $this->objPenWs = new BeSimple\SoapClient\SoapClient($this->strWSDL, $this->options); |
171 | } | 171 | } |
172 | } catch (Exception $e) { | 172 | } catch (Exception $e) { |
173 | - throw new InfraException('Erro acessando serviço.', $e); | 173 | + $mensagem = InfraException::inspecionar($e); |
174 | + throw new InfraException('Erro acessando serviço: ' . $mensagem, $e); | ||
174 | } | 175 | } |
175 | } | 176 | } |
176 | 177 | ||
@@ -433,11 +434,14 @@ class ProcessoEletronicoRN extends InfraRN { | @@ -433,11 +434,14 @@ class ProcessoEletronicoRN extends InfraRN { | ||
433 | } | 434 | } |
434 | } | 435 | } |
435 | } catch (\SoapFault $fault) { | 436 | } catch (\SoapFault $fault) { |
436 | - $mensagem = $this->tratarFalhaWebService($fault); | 437 | + //$mensagem = $this->tratarFalhaWebService($fault); |
438 | + $mensagem = InfraException::inspecionar($fault); | ||
437 | throw new InfraException(InfraString::formatarJavaScript($mensagem), $fault); | 439 | throw new InfraException(InfraString::formatarJavaScript($mensagem), $fault); |
438 | - } catch (\Exception $e) { | ||
439 | - throw new InfraException("Error Processing Request", $e); | ||
440 | } | 440 | } |
441 | + // catch (\Exception $e) { | ||
442 | + // $mensagem = InfraException::inspecionar($e); | ||
443 | + // throw new InfraException("Error Processing Request", $e); | ||
444 | + // } | ||
441 | 445 | ||
442 | return $arrObjPendenciaDTO; | 446 | return $arrObjPendenciaDTO; |
443 | } | 447 | } |