mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-02-09 12:29:13 +00:00
estructura inicial de carrito hecha
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
package com.imprimelibros.erp.cart;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
public interface CartItemRepository extends JpaRepository<CartItem, Long> {
|
||||
|
||||
List<CartItem> findByCartId(Long cartId);
|
||||
|
||||
Optional<CartItem> findByCartIdAndPresupuestoId(Long cartId, Long presupuestoId);
|
||||
|
||||
boolean existsByCartIdAndPresupuestoId(Long cartId, Long presupuestoId);
|
||||
|
||||
long deleteByCartId(Long cartId);
|
||||
}
|
||||
Reference in New Issue
Block a user