From 1efb67b89ab34e5ef5b8242e5df5ed324640e5e3 Mon Sep 17 00:00:00 2001 From: Giuli1297 Date: Mon, 22 Nov 2021 14:05:16 -0300 Subject: [PATCH] Numero de ocurrencias por busqueda --- curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java | 10 +--------- curriculumsearch/src/main/webapp/jsp/postulantes.jsp | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java b/curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java index 0c6fd57..53e486c 100644 --- a/curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java +++ b/curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java @@ -103,6 +103,7 @@ public class PostulanteRRHHController { new TypedParameterValue(StringType.INSTANCE,null) : new TypedParameterValue(StringType.INSTANCE,"%"+nombre+"%"), dispo, lvlEng, lvlTec, tecId, instId,cargoId,page,estado,convId); + model.addAttribute("numeroOcurrencias", postulantesPag.getTotalElements()); List postulantes = postulantesPag.getContent(); List postulantesDTO = new ArrayList<>(); @@ -134,15 +135,6 @@ public class PostulanteRRHHController { } -// @GetMapping({"/pdfPostulante/{postulanteId}"}) -// public String getPostulantePdf(Model model, @PathVariable("postulanteId") Long postulanteId) { -// Postulante p = post.findById(postulanteId).orElse(null); -// model.addAttribute("postulante",p); -// model.addAttribute("cvId", fileRepo.getIdByPostulante(p)); -// model.addAttribute("estadoP", EstadoPostulante.values()); -// return "detallepostulante2"; -// -// } @PostMapping({"/postulantes/{postulanteId}"}) public String setPostulanteEstado(@ModelAttribute Postulante postulante, BindingResult result, @PathVariable("postulanteId") Long postulanteId) { diff --git a/curriculumsearch/src/main/webapp/jsp/postulantes.jsp b/curriculumsearch/src/main/webapp/jsp/postulantes.jsp index 55d7508..4cd7a14 100644 --- a/curriculumsearch/src/main/webapp/jsp/postulantes.jsp +++ b/curriculumsearch/src/main/webapp/jsp/postulantes.jsp @@ -209,11 +209,18 @@ -- libgit2 0.26.0