haoyi修改

This commit is contained in:
2026-04-28 09:22:48 +00:00
parent 3b08537f5e
commit 54ba912b2a
6 changed files with 688 additions and 125 deletions

View File

@@ -13,10 +13,10 @@
----------------------------------------------------------------------------
create or replace temporary view external_sales_union as
select distinct
PACK_COD,
PACK_CODE as PACK_COD,
DATA_SOURCE,
PACK_FLAG,
CORP_COD,
CORP_CODE AS CORP_COD,
SALES_VALUE_CAL,
dept_name,
new_code,
@@ -2830,4 +2830,4 @@ left join (select CMPS_DES_C,DATA_SOURCE from base_table
having count(distinct cmps_cod)>1
) t3
on t1.CMPS_DES_C = t3.CMPS_DES_C and t1.data_source = t3.data_source
where t2.prod_des_c is not null or t3.cmps_des_c is not null
where t2.prod_des_c is not null or t3.cmps_des_c is not null