trabajando en la vista del pedido

This commit is contained in:
2025-11-18 21:32:16 +01:00
parent 997741c3c9
commit 58f0eee5d9
16 changed files with 7360 additions and 6093 deletions

View File

@ -1,6 +1,6 @@
package com.imprimelibros.erp.pedidos;
import java.time.LocalDateTime;
import java.time.Instant;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
@ -19,5 +19,5 @@ public interface PedidoRepository extends JpaRepository<Pedido, Long>, JpaSpecif
AND p.createdAt >= :afterDate
""")
Double sumTotalByCreatedByAndCreatedAtAfter(@Param("userId") Long userId,
@Param("afterDate") LocalDateTime afterDate);
@Param("afterDate") Instant afterDate);
}