Puja controller, puja repository , puja service. todo eso se ajusto para mostrar las n ultimas pujas
Some checks failed
Deploy Spring Boot App / build-and-deploy (push) Has been cancelled

This commit is contained in:
2026-03-12 15:11:34 -04:00
parent e0a6e5cc8a
commit ceea9a0133
4 changed files with 32 additions and 1 deletions

View File

@@ -32,6 +32,21 @@ public class PujaController {
public List<Puja> getForInforme(@PathVariable Long remateId){
return pujaService.fingForReporte(remateId);
}
@GetMapping("/informe/npujas/{remateId}")
public ResponseEntity<List<Puja>> getReporteTopPujas(
@PathVariable Long remateId,
@RequestParam(defaultValue = "3") int limite) {
List<Puja> reporte = pujaService.findForNPujasReporte(remateId, limite);
if (reporte.isEmpty()) {
return ResponseEntity.noContent().build();
}
return ResponseEntity.ok(reporte);
}
@GetMapping("/remate/{id}")
public List<Puja> getForRemate(@PathVariable Long id){
return pujaService.findForRemtae(id);