产品档案填报初步测试
This commit is contained in:
parent
6e98568c61
commit
854dde9f4a
@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="SqlDialectMappings">
|
||||
<file url="file://$PROJECT_DIR$/tianbao/产品档案填报.sql" dialect="PostgreSQL" />
|
||||
<file url="file://$PROJECT_DIR$/tianbao/基础指标填报表.sql" dialect="PostgreSQL" />
|
||||
</component>
|
||||
</project>
|
96
tianbao/产品档案填报.sql
Normal file
96
tianbao/产品档案填报.sql
Normal file
@ -0,0 +1,96 @@
|
||||
-- *****************************
|
||||
-- 创建人员: 杨坤安
|
||||
-- 创建时间: 2024-08-14
|
||||
-- 功能描述: 产品档案填报
|
||||
-- *****************************
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-- 产品档案维度表
|
||||
select
|
||||
*
|
||||
from dwr.dim_product
|
||||
where product_name = '酱香调味酒散酒酒体'
|
||||
;
|
||||
|
||||
-- 【1_report_产品编码】
|
||||
|
||||
select
|
||||
product_code
|
||||
,product_name
|
||||
from dwr.dim_product
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-- 【2_report_产品信息】
|
||||
select
|
||||
*
|
||||
from dwr.dim_product
|
||||
-- where product_name = '${product_name}'
|
||||
;
|
||||
|
||||
-- 【产品编码】
|
||||
-- sql("DWS","select product_code from dwr.dim_product where product_name= '" + A2 + "'",1,1)
|
||||
|
||||
-- 【产品所属事业部】
|
||||
-- sql("DWS","select b.fist_dept_name from(select bu_code from dwr.dim_product where product_name= '" + A2 + "')a left join(select distinct fist_dept_code ,fist_dept_name from dwr.dim_department)b on a.bu_code = b.fist_dept_cod",1,1)
|
||||
|
||||
select b.fist_dept_name from(select bu_code from dwr.dim_product where product_name= '53度老郎酒.2002 1*6')a left join(select distinct fist_dept_code ,fist_dept_name from dwr.dim_department)b on a.bu_code = b.fist_dept_code
|
||||
|
||||
|
||||
-- 【产品线】
|
||||
-- sql("DWS","select pl_name from dwr.dim_product where product_name= '" + A2 + "'",1,1)
|
||||
|
||||
|
||||
-- 【产品系列编码】
|
||||
-- sql("DWS","select pr_code from dwr.dim_product where product_name= '" + A2 + "'",1,1)
|
||||
|
||||
|
||||
-- 【产品系列名称】
|
||||
-- sql("DWS","select pr_name from dwr.dim_product where product_name= '" + A2 + "'",1,1)
|
||||
|
||||
-- 【品项编码】
|
||||
-- sql("DWS","select pi_code from dwr.dim_product where product_name= '" + A2 + "'",1,1)
|
||||
|
||||
-- 【品项名称】
|
||||
-- sql("DWS","select pi_name from dwr.dim_product where product_name= '" + A2 + "'",1,1)
|
||||
|
||||
-- 【产品编码】
|
||||
-- sql("DWS","select product_code from dwr.dim_product where product_name= '" + A2 + "'",1,1)
|
||||
|
||||
-- 【销售状态】
|
||||
-- sql("DWS","select sale_status from dwr.dim_product where product_name= '" + A2 + "'",1,1)
|
||||
|
||||
-- 【是否纳入需求预测统计】
|
||||
|
||||
-- 【主产品编码】
|
||||
-- sql("DWS","select pl_name from dwr.dim_product where product_name= '" + A2 + "'",1,1)
|
||||
|
||||
-- 【主产品名称】
|
||||
|
||||
-- 【度数】
|
||||
-- sql("DWS","select alc_degree from dwr.dim_product where product_name= '" + A2 + "'",1,1)
|
||||
|
||||
-- 【规格】
|
||||
-- sql("DWS","select spec from dwr.dim_product where product_name= '" + A2 + "'",1,1)
|
||||
|
||||
-- 【转换率】
|
||||
-- sql("DWS","select pack_base_num from dwr.dim_product where product_name= '" + A2 + "'",1,1)
|
||||
|
||||
-- 【香型】
|
||||
-- sql("DWS","select aroma_type from dwr.dim_product where product_name= '" + A2 + "'",1,1)
|
||||
|
||||
-- 【计划内价格】
|
||||
-- sql("DWS","select price_in from dwr.dim_product where product_name= '" + A2 + "'",1,1)
|
||||
|
||||
-- 【计划外价格】
|
||||
-- sql("DWS","select price_out from dwr.dim_product where product_name= '" + A2 + "'",1,1)
|
||||
|
Loading…
Reference in New Issue
Block a user