Commit a467b4e51b84d26d172077ca6a6f6f266e0401ea
1 parent
31ca7047
Exists in
master
Correção do método que verifica o valor da nota.
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/main/java/br/com/ases/controller/AvaliacaoController.java
... | ... | @@ -167,7 +167,7 @@ public class AvaliacaoController { |
167 | 167 | nota = avaliacaoBusiness.obterNotaEselo(checker.getDocument(),file.getFileName(), mapaListaOcorrencias); |
168 | 168 | // Altera a cor de webaxscore de acordo a pontuacao |
169 | 169 | |
170 | - if (nota != null) { | |
170 | + if (nota.getValor() != null) { | |
171 | 171 | DefinirCorWebaxscore(nota.getValor()); |
172 | 172 | |
173 | 173 | VRaptorRequestHolder.currentRequest().getServletContext().setAttribute("webaxscore", webaxscore); |
... | ... | @@ -276,8 +276,8 @@ public class AvaliacaoController { |
276 | 276 | //nota = avaliacaoBusiness.obterNota(checker.checkSumarized(), url, mapaListaOcorrencias); |
277 | 277 | |
278 | 278 | nota = avaliacaoBusiness.obterNotaEselo(checker.getDocument(),url, mapaListaOcorrencias); |
279 | - | |
280 | - if (nota != null) { | |
279 | + | |
280 | + if (nota.getValor() != null) { | |
281 | 281 | DefinirCorWebaxscore(nota.getValor()); |
282 | 282 | |
283 | 283 | VRaptorRequestHolder.currentRequest().getServletContext() |
... | ... | @@ -499,7 +499,7 @@ public class AvaliacaoController { |
499 | 499 | nota = avaliacaoBusiness.obterNotaEselo(checker.getDocument(),tituloSite + " - " + sdf.format(new Date()), mapaListaOcorrencias); |
500 | 500 | // Altera a cor de webaxscore de acordo a pontuacao |
501 | 501 | |
502 | - if (nota != null) { | |
502 | + if (nota.getValor() != null) { | |
503 | 503 | DefinirCorWebaxscore(nota.getValor()); |
504 | 504 | |
505 | 505 | VRaptorRequestHolder.currentRequest().getServletContext() | ... | ... |