Commit fd808715 authored by 胡涛's avatar 胡涛

sql脚本

parent c88aeb9a
...@@ -43,7 +43,7 @@ select ...@@ -43,7 +43,7 @@ select
t1.LEVEL1COMCODE , -- 分公司代码 t1.LEVEL1COMCODE , -- 分公司代码
cast(case when coinsLinkCode = '0' then 1 cast(case when coinsLinkCode = '0' then 1
else cast(JsonGetCoinsRateUDF(plcSolution[1].plcCoins.plcLinkBasicInformat,'coinsLinkCode',coinsLinkCode) as decimal(30,4)) /100 else cast(JsonGetCoinsRateUDF(plcSolution[1].plcCoins.plcLinkBasicInformat,'coinsLinkCode',coinsLinkCode) as decimal(30,4)) /100
end as varchar ) as coinsrate -- 系数 end as varchar ) as coinsRate -- 系数
from XF_ODS.XF_ODS_KAFKA.ENDOR s1 from XF_ODS.XF_ODS_KAFKA.ENDOR s1
left join XF_ODS.XF_ODS_MYSQL.CD_COM_ALL for system_time as of s1.proctime as t1 on s1.businessOffice = t1.COMCODE left join XF_ODS.XF_ODS_MYSQL.CD_COM_ALL for system_time as of s1.proctime as t1 on s1.businessOffice = t1.COMCODE
where left(s1.productCode,2) ='05' where left(s1.productCode,2) ='05'
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment