fix(bep-caliber): seed target_value NULL -> 0.00 (kpi_definitions NOT NULL, 1048)
ci/woodpecker/push/main Pipeline failed
ci/woodpecker/push/main Pipeline failed
首发串 [4/8] 以 pymysql 1048 失败: kpi_definitions.target_value 为 NOT NULL(decimal(15,2) default 0.00),种子显式写 NULL 覆盖默认值。 本提交只改 backend/scripts/sql/bep_kpi_defs_rebate_20261002.sql 一行。
This commit is contained in:
@@ -11,7 +11,7 @@ INSERT INTO kpi_definitions
|
||||
SELECT 1, 'F_BEP_REBATE', '实测渠补率', 'finance', 'profitability',
|
||||
'round(sum(571103借方)/sum(5001贷方)*100,2)',
|
||||
'渠补率(实测,YTD累计)=Σ571103借方÷Σ5001贷方; 供保本点卡面单一事实源; 政策常量84.61%仅对照; 缺数期不出值(fail-closed)',
|
||||
'derived', 'BEP派生器 kpi_bep_deriver.py(voucher_details 571103/5001 累计)', '财务部', 'monthly', '%', NULL,
|
||||
'derived', 'BEP派生器 kpi_bep_deriver.py(voucher_details 571103/5001 累计)', '财务部', 'monthly', '%', 0.00,
|
||||
'ratio', NULL, NULL, NULL,
|
||||
'strategic', 'active', 'finance-bot', 'Epic2', 1
|
||||
FROM DUAL
|
||||
|
||||
Reference in New Issue
Block a user