20260519生产同步修复较多问题

This commit is contained in:
2026-05-20 16:06:43 +08:00
parent b02475424a
commit 6e957a44f6
23 changed files with 5355 additions and 4427 deletions

View File

@@ -352,7 +352,8 @@ table Fact_Retail
) B
ON A.PACK_CODE = B.PACK_CODE
where
(B.pack_code IS NULL and a.KPI_NAME in ('weig_dist_rate','weighted_spread_rate','num_dist_rate','digital_spread_rate')) OR a.KPI_NAME NOT IN ('weig_dist_rate','weighted_spread_rate','num_dist_rate','digital_spread_rate')
(B.pack_code IS not null and GEO_KEY <> 'ROC')
OR B.pack_code IS null
GROUP BY
A.PACK_CODE,
A.CORP_COD,
@@ -404,6 +405,7 @@ table Fact_Retail
end as STR_KPI_VAL_EN_1
FROM
dm_zk_retail_sales_kpi A
WHERE YYYYMM>=202101
"
& UsingLimit,
null,