From 60af3b99983500f655036135c781359ebdc7d081 Mon Sep 17 00:00:00 2001 From: duxingchen Date: Mon, 10 Aug 2026 11:02:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=89=A9=E6=96=99=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=85=A8=E9=87=8F=E5=B1=95=E7=A4=BA(=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=88=90=E5=93=81/=E5=8D=8A=E6=88=90=E5=93=81=E9=99=90?= =?UTF-8?q?=E5=88=B6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/api/v1/endpoints/materials.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/api/v1/endpoints/materials.py b/backend/app/api/v1/endpoints/materials.py index 66b7b32..2c62731 100644 --- a/backend/app/api/v1/endpoints/materials.py +++ b/backend/app/api/v1/endpoints/materials.py @@ -6,8 +6,8 @@ from sqlalchemy import text router = APIRouter(prefix="/materials", tags=["物料选择"]) -# 只展示成品 / 半成品(category 字段区分,如 IRIS/成品/… / IRIS/半成品/…) -TYPE_FILTER = "category ILIKE '%成品%' OR category ILIKE '%半成品%'" +# 全量展示全部物料类别 +TYPE_FILTER = "1=1" # ============================================================