From f884fa5a18c49612e7d8ddfe00dd58b6de6e91f3 Mon Sep 17 00:00:00 2001 From: Hermes CI Fix Date: Sat, 5 Sep 2026 09:11:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(scripts):=20E2E=E9=AA=8C=E8=AF=81=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=20actual=5Fcosts=20=E6=97=A0remark=E5=88=97,=20?= =?UTF-8?q?=E5=AD=98=E9=87=8Finternal=E8=AE=A1=E6=95=B0=E6=94=B9=E5=89=8D?= =?UTF-8?q?=E7=BC=80=E6=8E=92=E9=99=A4=20(cma-rd-dimension)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/scripts/verify_cost_research_dimension_e2e.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/scripts/verify_cost_research_dimension_e2e.py b/backend/scripts/verify_cost_research_dimension_e2e.py index b64cea1a..d8cd25bb 100644 --- a/backend/scripts/verify_cost_research_dimension_e2e.py +++ b/backend/scripts/verify_cost_research_dimension_e2e.py @@ -142,11 +142,11 @@ def main(): # ── F. 存量保守默认: internal 行仍在(ALTER后存量 internal, 未误归研发) ── n_std_internal = db.execute(text( - "SELECT COUNT(*) FROM standard_costs WHERE project_type = 'internal' AND remark IS NULL" - )).scalar() + "SELECT COUNT(*) FROM standard_costs WHERE project_type = 'internal' AND product_code NOT LIKE :p" + ), {"p": f"{PREFIX}%"}).scalar() n_act_internal = db.execute(text( - "SELECT COUNT(*) FROM actual_costs WHERE project_type = 'internal' AND remark IS NULL" - )).scalar() + "SELECT COUNT(*) FROM actual_costs WHERE project_type = 'internal' AND product_code NOT LIKE :p" + ), {"p": f"{PREFIX}%"}).scalar() check("存量 standard internal 保留(29)", n_std_internal >= 29, f"count={n_std_internal}") check("存量 actual internal 保留(134)", n_act_internal >= 134, f"count={n_act_internal}")