From e7202dc87caeb7c44cbc38740085d71c6babbc79 Mon Sep 17 00:00:00 2001 From: ZeroFairy Date: Wed, 18 Dec 2024 18:41:11 +0700 Subject: [PATCH] have change query --- .../java/dev/kons/kuenyawz/repositories/ProductRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/kons/kuenyawz/repositories/ProductRepository.java b/src/main/java/dev/kons/kuenyawz/repositories/ProductRepository.java index 57be0d1b..07d511d4 100644 --- a/src/main/java/dev/kons/kuenyawz/repositories/ProductRepository.java +++ b/src/main/java/dev/kons/kuenyawz/repositories/ProductRepository.java @@ -15,6 +15,6 @@ public interface ProductRepository extends JpaRepository, JpaSpec List findAllByCategoryIsAndNameLikeIgnoreCase(Product.Category category, String name); - @Query("SELECT p.productId FROM Product p WHERE p.available=TRUE") + @Query("SELECT p.productId FROM Product p WHERE p.available=TRUE AND p.deleted=FALSE") List findAllAvailableIds(); } \ No newline at end of file