From 20b28aed7ec64eb66c567dd68fe39ba73a9d93a8 Mon Sep 17 00:00:00 2001 From: Sofía Benítez Date: Thu, 30 Mar 2023 11:35:24 -0400 Subject: [PATCH] .\images\ --- curriculumsearch/src/main/java/com/roshka/controller/FeriadoController.java | 2 +- curriculumsearch/src/main/java/com/roshka/repositorio/FeriadoRepository.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/curriculumsearch/src/main/java/com/roshka/controller/FeriadoController.java b/curriculumsearch/src/main/java/com/roshka/controller/FeriadoController.java index 9621e03..a0f9f4d 100644 --- a/curriculumsearch/src/main/java/com/roshka/controller/FeriadoController.java +++ b/curriculumsearch/src/main/java/com/roshka/controller/FeriadoController.java @@ -62,7 +62,7 @@ public class FeriadoController { } @PostMapping(path = {"/agregar","/modificar/{id}"}) - public String addFeriado(@RequestPart(name = "motivoFeriado") String motivoFeriado, + public String addFeriado(@RequestPart(name = "motivoFeriado") String motivoFeriado, @RequestPart(name = "fecha") String fecha, @PathVariable(required = false) Long id, Model model) { diff --git a/curriculumsearch/src/main/java/com/roshka/repositorio/FeriadoRepository.java b/curriculumsearch/src/main/java/com/roshka/repositorio/FeriadoRepository.java index e41c132..8bdb302 100644 --- a/curriculumsearch/src/main/java/com/roshka/repositorio/FeriadoRepository.java +++ b/curriculumsearch/src/main/java/com/roshka/repositorio/FeriadoRepository.java @@ -13,6 +13,7 @@ import java.util.List; public interface FeriadoRepository extends JpaRepository { List findAllByFecha(Date publicationDate); + Feriado findByFecha(Date publicationDate); public Page findByMotivoFeriadoContainingIgnoreCase(String nombre, Pageable pageable); -- libgit2 0.26.0