From 9b6a4bd0b3cb6b8723076b5712785583f36795d9 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 24 Nov 2021 15:16:23 -0300 Subject: [PATCH] eliminacion de sysouts --- curriculumsearch/src/main/java/com/roshka/controller/CargoController.java | 1 - curriculumsearch/src/main/java/com/roshka/controller/ConvocatoriaController.java | 25 ++----------------------- curriculumsearch/src/main/java/com/roshka/controller/RRHHUserController.java | 2 -- curriculumsearch/src/main/java/com/roshka/controller/TecnologiaController.java | 1 - 4 files changed, 2 insertions(+), 27 deletions(-) diff --git a/curriculumsearch/src/main/java/com/roshka/controller/CargoController.java b/curriculumsearch/src/main/java/com/roshka/controller/CargoController.java index e335d12..8d5fc33 100644 --- a/curriculumsearch/src/main/java/com/roshka/controller/CargoController.java +++ b/curriculumsearch/src/main/java/com/roshka/controller/CargoController.java @@ -68,7 +68,6 @@ public class CargoController { cargo.setExisteConvocatoria(cargoRepo.getById(id).isExisteConvocatoria()); } cargoRepo.save(cargo); - System.out.println(cargo.getNombre()); return "redirect:/cargos"; } diff --git a/curriculumsearch/src/main/java/com/roshka/controller/ConvocatoriaController.java b/curriculumsearch/src/main/java/com/roshka/controller/ConvocatoriaController.java index 12f324e..d75211f 100644 --- a/curriculumsearch/src/main/java/com/roshka/controller/ConvocatoriaController.java +++ b/curriculumsearch/src/main/java/com/roshka/controller/ConvocatoriaController.java @@ -75,7 +75,6 @@ public class ConvocatoriaController { convocatoria.setFechaInicio(new Date()); convocatoria.setEstado(EstadoConvocatoria.abierto); convoRepo.save(convocatoria); - System.out.println(convocatoria.getFechaInicio()); return "redirect:/convocatorias"; } @RequestMapping("/convocatoria/crear/{id}") @@ -83,12 +82,11 @@ public class ConvocatoriaController { ConvocatoriaCargo convocatoria=new ConvocatoriaCargo(); convocatoria.setCargo(cargoRepo.findByIdCargo(id)); convocatoria.setCargoId(cargoRepo.findByIdCargo(id).getId()); - System.out.println(cargoRepo.findByIdCargo(id).getNombre()); convocatoria.setFechaInicio(new Date()); convocatoria.setEstado(EstadoConvocatoria.abierto); convocatoria.getCargo().setExisteConvocatoria(true); convoRepo.save(convocatoria); - System.out.println(convocatoria.getFechaInicio()); + return "redirect:/convocatorias"; } @@ -120,26 +118,7 @@ public class ConvocatoriaController { convocatoria.setFechaFin(new Date()); convocatoria.getCargo().setExisteConvocatoria(false); convoRepo.save(convocatoria); - /*if(id != null) convocatoria.setId(id); - //System.out.println(convoRepo.filtrarConvocatoriasPorCargo(convocatoria.getCargoId())); - for(ConvocatoriaCargo c: convoRepo.filtrarConvocatoriasPorCargo(convocatoria.getCargoId())){ - - - if(result.hasErrors() || c.getCargoId()==convocatoria.getCargoId() && c.getFechaFin().after(convocatoria.getFechaInicio()) ) - { - - model.addAttribute("existeFecha", true); - System.out.println("no debe"); - return "convocatoria-form"; - - } - else{ - convoRepo.save(convocatoria); - System.out.println("si anda"); - break; - - } - }*/ + return "redirect:/convocatorias"; diff --git a/curriculumsearch/src/main/java/com/roshka/controller/RRHHUserController.java b/curriculumsearch/src/main/java/com/roshka/controller/RRHHUserController.java index 585d47f..39f8156 100644 --- a/curriculumsearch/src/main/java/com/roshka/controller/RRHHUserController.java +++ b/curriculumsearch/src/main/java/com/roshka/controller/RRHHUserController.java @@ -87,8 +87,6 @@ public class RRHHUserController { @GetMapping("/edit-user-data") public String editUserData(HttpServletRequest request, Model model){ Authentication auth = SecurityContextHolder.getContext().getAuthentication(); - System.out.println(auth.getPrincipal().toString()); - System.out.println(rrhhUserRepository.findByEmail(auth.getPrincipal().toString())); model.addAttribute("user", rrhhUserRepository.findByEmail(auth.getPrincipal().toString())); return "edit-user-data"; } diff --git a/curriculumsearch/src/main/java/com/roshka/controller/TecnologiaController.java b/curriculumsearch/src/main/java/com/roshka/controller/TecnologiaController.java index 3dc7872..7d77968 100644 --- a/curriculumsearch/src/main/java/com/roshka/controller/TecnologiaController.java +++ b/curriculumsearch/src/main/java/com/roshka/controller/TecnologiaController.java @@ -69,7 +69,6 @@ public String addtecnologiaView(Model model,@PathVariable(required = false) Long } if(id != null ) tecnologia.setId(id); tecRepo.save(tecnologia); - System.out.println(tecnologia.getNombre()); return "redirect:/tecnologias"; } -- libgit2 0.26.0