Commit 5701b3da579f410d1492c129f1f679435d297889
1 parent
24ca8383
Exists in
master
and in
1 other branch
módulo força coleta por máquina
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
src/Cacic/WSBundle/Controller/ColetaController.php
... | ... | @@ -128,6 +128,13 @@ class ColetaController extends Controller |
128 | 128 | $data_fim = $data_fim->format('d/m/Y H:i:s'); |
129 | 129 | $logger->debug("%%% Final da operação de coleta: $data_fim. Tempo de execução da coleta: $tempo %%%"); |
130 | 130 | |
131 | + //Verifica se a coleta foi forçada | |
132 | + if ($computador->getForcaColeta() == 'S') { | |
133 | + $computador->setForcaColeta('N'); | |
134 | + $this->getDoctrine()->getManager()->persist( $computador ); | |
135 | + $this->getDoctrine()->getManager()->flush(); | |
136 | + } | |
137 | + | |
131 | 138 | $response = new Response(); |
132 | 139 | $response->headers->set('Content-Type', 'xml'); |
133 | 140 | $cacic_helper = new OldCacicHelper( $this->get('kernel') ); | ... | ... |