Commit 20b28aed by Sofía Benitez

.\images\

parent 69d0cd8e
......@@ -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) {
......
......@@ -13,6 +13,7 @@ import java.util.List;
public interface FeriadoRepository extends JpaRepository<Feriado,Long> {
List<Feriado> findAllByFecha(Date publicationDate);
Feriado findByFecha(Date publicationDate);
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