Commit 20b28aed by Sofía Benitez

.\images\

parent 69d0cd8e
...@@ -62,7 +62,7 @@ public class FeriadoController { ...@@ -62,7 +62,7 @@ public class FeriadoController {
} }
@PostMapping(path = {"/agregar","/modificar/{id}"}) @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, @RequestPart(name = "fecha") String fecha,
@PathVariable(required = false) Long id, @PathVariable(required = false) Long id,
Model model) { Model model) {
......
...@@ -13,6 +13,7 @@ import java.util.List; ...@@ -13,6 +13,7 @@ import java.util.List;
public interface FeriadoRepository extends JpaRepository<Feriado,Long> { public interface FeriadoRepository extends JpaRepository<Feriado,Long> {
List<Feriado> findAllByFecha(Date publicationDate); List<Feriado> findAllByFecha(Date publicationDate);
Feriado findByFecha(Date publicationDate);
public Page<Feriado> findByMotivoFeriadoContainingIgnoreCase(String nombre, Pageable pageable); public Page<Feriado> findByMotivoFeriadoContainingIgnoreCase(String nombre, Pageable pageable);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment