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
Some checks failed
Deploy Spring Boot App / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user