Skip to content

Commit

Permalink
fix: correção de expedir lote para bloco
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauro Costa committed Jul 31, 2024
1 parent c31d89d commit 3259abf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pen_expedir_bloco.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@

$arrTramiteEmBlocoProtocolo[0]->setArrListaProcedimento($arrProcedimentos);
$objPenExpedirLoteRN = new PenExpedirLoteRN();
$ret = $objPenExpedirLoteRN->cadastrarLote($arrTramiteEmBlocoProtocolo[0]);
$ret = $objPenExpedirLoteRN->cadastrarBloco($arrTramiteEmBlocoProtocolo[0]);

$bolBotaoFecharCss = InfraUtil::compararVersoes(SEI_VERSAO, ">", "4.0.1");

Expand Down
2 changes: 1 addition & 1 deletion src/rn/PenExpedirLoteRN.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private function validarParametrosLote(InfraException $objInfraException, PenBlo

}

protected function cadastrarLoteControlado(PenBlocoProcessoDTO $objPenBlocoProcessoDTO)
protected function cadastrarBlocoControlado(PenBlocoProcessoDTO $objPenBlocoProcessoDTO)
{
try {
//Valida Permissão
Expand Down
2 changes: 1 addition & 1 deletion src/rn/PendenciasEnvioTramiteRN.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private function expedirPendenciaFilaProcessamento($objPendencia)
$this->gravarLogDebug("Situação do trâmite ($strStatus) não pode ser tratada para expedir pendências.");
}

$client->addTaskBackground('expedirLote', $numIDT, null, $numIDT);
$client->addTaskBackground('expedirBloco', $numIDT, null, $numIDT);
$client->runTasks();
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/rn/ProcessarPendenciasRN.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ private function configurarCallbacks()
$this->enviarReciboTramiteProcesso($job->workload());
}, null, self::TIMEOUT_PROCESSAMENTO_JOB);

$this->objGearmanWorker->addFunction("expedirLote", function($job) {
$this->expedirLote($job->workload());
$this->objGearmanWorker->addFunction("expedirBloco", function($job) {
$this->expedirBloco($job->workload());
}, null, self::TIMEOUT_PROCESSAMENTO_JOB);

}
Expand Down

0 comments on commit 3259abf

Please sign in to comment.