From 9fc86d113fe0b7fa41fd53fa919c26a902adc039 Mon Sep 17 00:00:00 2001 From: Guilherme Andrade Del Cantoni Date: Thu, 17 Jan 2019 10:10:20 -0200 Subject: [PATCH] [Fixed #10] Adequação de rotina de gravação de dados de andamento --- rn/ProcedimentoAndamentoRN.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rn/ProcedimentoAndamentoRN.php b/rn/ProcedimentoAndamentoRN.php index 36aea06..23425cc 100644 --- a/rn/ProcedimentoAndamentoRN.php +++ b/rn/ProcedimentoAndamentoRN.php @@ -62,7 +62,7 @@ class ProcedimentoAndamentoRN extends InfraRN { * @param string $strSituacao Tipo ENUM(S,N) * @return null */ - public function cadastrar($strMensagem = 'Não informado', $strSituacao = 'N'){ + protected function cadastrarControlado($strMensagem = 'Não informado', $strSituacao = 'N'){ if($this->isSetOpts === false) { throw new InfraException('Log do cadastro de procedimento não foi configurado'); @@ -70,8 +70,6 @@ class ProcedimentoAndamentoRN extends InfraRN { $objInfraIBanco = $this->inicializarObjInfraIBanco(); - $objInfraIBanco->abrirTransacao(); - $hash = md5($this->dblIdProcedimento.$strMensagem); $objProcedimentoAndamentoDTO = new ProcedimentoAndamentoDTO(); @@ -86,7 +84,5 @@ class ProcedimentoAndamentoRN extends InfraRN { $objProcedimentoAndamentoBD = new ProcedimentoAndamentoBD($objInfraIBanco); $objProcedimentoAndamentoBD->cadastrar($objProcedimentoAndamentoDTO); - - $objInfraIBanco->confirmarTransacao(); } } -- libgit2 0.21.2