20260520生产bug修复

1 retail的架构的陕西 对应 两个 RC
2 niad free report页面的market size ly值因直取出现未聚合的问题
3 Retail 的价格铺货率没有 1,2月份的值
This commit is contained in:
2026-05-20 10:41:41 +00:00
parent 2984fe7195
commit d39402998c
3 changed files with 142 additions and 61 deletions

View File

@@ -89,10 +89,10 @@ market_ta (
)
,pack_market as (
select distinct a.pack_cod,a.market,b.subbu
from dm.dm_td_external_market_pack_mapping a
select distinct a.pack_code as pack_cod,a.market,b.subbu
from dm.dm_td_ext_unionall_market_pack_mapping a
left join market_ta b on a.MARKET = b.market
where data_source = 'Retail(Quarterly)'
where datasource = 'Retail(Quarterly)'
)
,external_geo as (
select distinct province_c,audit_cod,REGION_CENTER
@@ -132,7 +132,7 @@ from dm.dm_td_sd_territory_indication t1
inner join YM_CVH t2
on t1.yyyymm = t2.key_value
where bu in ('Retail') --20260320 chenwu Retail数据源的架构OBURetail
and t1.key_hp<>3 --chenwu 20250904
and t1.key_hp=1 --chenwu 20260519
)
,province_market as (
select t1.trty_code,
@@ -435,4 +435,4 @@ SELECT DISTINCT
'' AS DSM_NAME,
'' AS MR_KCODE,
'' AS MR_NAME
FROM pack_2_market t2
FROM pack_2_market t2