Class ReporteConsumoServiceImpl

java.lang.Object
com.deusto.coffeestack.service.ReporteConsumoServiceImpl
All Implemented Interfaces:
ReporteConsumoService

@Service public class ReporteConsumoServiceImpl extends Object implements ReporteConsumoService
  • Constructor Details

  • Method Details

    • generar

      @Transactional(readOnly=true) public ReporteConsumoResponse generar(Long insumoId, LocalDate desde, LocalDate hasta, Granularidad granularidad)
      Description copied from interface: ReporteConsumoService
      Genera un reporte de consumo (cantidad + coste estimado) de un insumo en el rango [desde, hasta] (ambos inclusive, días enteros).
      Specified by:
      generar in interface ReporteConsumoService
      Parameters:
      insumoId - id del insumo
      desde - primer día incluido en el rango
      hasta - último día incluido en el rango
      granularidad - agrupación temporal de la serie devuelta
      Returns:
      el reporte con totales, desglose por tipo y serie temporal