From 73655af744655a6aa86c0284155c70fc0792cdbe Mon Sep 17 00:00:00 2001 From: WuYongJie Date: Tue, 2 Jun 2026 22:03:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(data-foundation):=20=E5=AF=B9=E9=BD=90?= =?UTF-8?q?=E9=9D=9E=E9=9B=86=E6=88=90=20SKU=20=E8=A7=84=E8=8C=83=E5=8C=96?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E9=A2=84=E6=A3=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migration.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/furniture-3d-system/prisma/migrations/20260531203000_normalize_core_code_identity_guards/migration.sql b/furniture-3d-system/prisma/migrations/20260531203000_normalize_core_code_identity_guards/migration.sql index b5626c2d..2dfd70f9 100644 --- a/furniture-3d-system/prisma/migrations/20260531203000_normalize_core_code_identity_guards/migration.sql +++ b/furniture-3d-system/prisma/migrations/20260531203000_normalize_core_code_identity_guards/migration.sql @@ -234,7 +234,8 @@ BEGIN SELECT 'IntakeNonIntegratedSkuItem.skuCode' AS field_name, upper(btrim("skuCode")) AS normalized_value FROM "IntakeNonIntegratedSkuItem" - WHERE NULLIF(btrim("skuCode"), '') IS NOT NULL + WHERE "dataQualityStatus" = 'READY' + AND NULLIF(btrim("skuCode"), '') IS NOT NULL GROUP BY upper(btrim("skuCode")) HAVING COUNT(*) > 1 @@ -242,7 +243,8 @@ BEGIN SELECT 'IntakeNonIntegratedSkuItem.barcode' AS field_name, upper(btrim("barcode")) AS normalized_value FROM "IntakeNonIntegratedSkuItem" - WHERE NULLIF(btrim("barcode"), '') IS NOT NULL + WHERE "dataQualityStatus" = 'READY' + AND NULLIF(btrim("barcode"), '') IS NOT NULL GROUP BY upper(btrim("barcode")) HAVING COUNT(*) > 1 )