jerry 3 ヶ月 前
コミット
c33a7d8e84
1 ファイル変更2 行追加0 行削除
  1. 2 0
      app/services/product_service.py

+ 2 - 0
app/services/product_service.py

@@ -66,6 +66,8 @@ class ProductService:
         # 如果你当前 paginate 是同步实现,这里保持与你原项目一致
 
         stmt = select(VasProduct)
+        
+        stmt = stmt.where(VasProduct.enabled == 1)
 
         if country:
             stmt = stmt.where(VasProduct.country == country)