Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dataquality_doc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王东
dataquality_doc
Commits
0bd75c8e
Commit
0bd75c8e
authored
Sep 01, 2022
by
王东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
指标计算承保字段调整
parent
ab7564f8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
49 deletions
+65
-49
ODS/DDL元数据/ENDOR.sql
ODS/DDL元数据/ENDOR.sql
+2
-3
ODS/ODS_ENDOR.sql
ODS/ODS_ENDOR.sql
+31
-16
ODS/ODS_POLICY.sql
ODS/ODS_POLICY.sql
+32
-30
No files found.
ODS/DDL元数据/ENDOR.sql
View file @
0bd75c8e
...
@@ -6,8 +6,8 @@ ENDOR_PLPENDORSE_PLPCOMMISSIONDETAIL
...
@@ -6,8 +6,8 @@ ENDOR_PLPENDORSE_PLPCOMMISSIONDETAIL
ENDOR_PLCSOLUTION
ENDOR_PLCSOLUTION
ENDOR_PLCSOLUTION_PLCCOINS
ENDOR_PLCSOLUTION_PLCCOINS
ENDOR_PLCSOLUTION_PLCCOINS_PLCCOINSBASICINFORMATION
ENDOR_PLCSOLUTION_PLCCOINS_PLCCOINSBASICINFORMATION
ENDOR_PLCSOLUTION_PLC
COINS_PLC
RATION
ENDOR_PLCSOLUTION_PLCRATION
ENDOR_PLCSOLUTION_PLCCO
INS_PLCCO
MMISSIONDETAIL
ENDOR_PLCSOLUTION_PLCCOMMISSIONDETAIL
ENDOR_PLCCAR05
ENDOR_PLCCAR05
ENDOR_PLCAPPLICANT
ENDOR_PLCAPPLICANT
ENDOR_PLCPUBLICINSURANT
ENDOR_PLCPUBLICINSURANT
...
@@ -58,7 +58,6 @@ ENDOR_PLCPUBLICINSURANT
...
@@ -58,7 +58,6 @@ ENDOR_PLCPUBLICINSURANT
agentNetFee
String
,
-- 新核心车险批单-手续费不含税金额
agentNetFee
String
,
-- 新核心车险批单-手续费不含税金额
)
>
,
)
>
,
)
>
,
)
>
,
policyNo
String
,
-- 新核心车险批单-保单号
policyNo
String
,
-- 新核心车险批单-保单号
businessOfficeName
String
,
-- 新核心车险批单-保单归属机构名称
businessOfficeName
String
,
-- 新核心车险批单-保单归属机构名称
startTime
String
,
-- 新核心车险批单-起保时间
startTime
String
,
-- 新核心车险批单-起保时间
...
...
ODS/ODS_ENDOR.sql
View file @
0bd75c8e
-- ODS_ENDOR ODS_批单业务数据
-- ODS_ENDOR ODS_批单业务数据
insert
into
ODS
.
ODS_KAFKA
.
ENDOR
insert
into
ODS
.
ODS_KAFKA
.
ENDOR
select
select
endorseNo
,
-- 1 批单号
endorseNo
,
-- 1 批单号
businessOffice
,
-- 2 机构代码
businessOffice
,
-- 新核心车险批单-保单归属机构代码
productCode
,
-- 3 险种代码
productCode
,
-- 新核心车险批单-险种代码
businessNatureCode
,
-- 4 业务来源
businessNatureCode
,
-- 新核心车险批单-业务来源
channelType
,
-- 5 渠道类型
channelType
,
-- 5 渠道类型
uwConclueDate
,
-- 6 核批完成时间
uwConclueDate
,
-- 6 核批完成时间
plpEndorse
,
-- plpEndorse
plpEndorse
,
plcSolution
,
-- plcSolution
recordClerkCode
,
-- 14 归属业务员ID
recordClerkCode
,
-- 14 归属业务员ID
recordClerkName
,
-- 15 归属业务员名称
recordClerkName
,
-- 15 归属业务员名称
businessChannelCode
,
-- 27 新核心车险批单-清分后渠道
businessChannelCode
,
-- 27 业务渠道
businessChannelName
,
-- 28 业务渠道名
businessChannelName
,
-- 28 业务渠道名
newPolicyFlag
,
-- 20 新核心车险批单-新保标识 1:是,0:否
newPolicyFlag
,
-- 20 新保标识 1:是,0:否
autoTransrenewFlag
,
-- 21 新核心车险批单-自动续保标识 1:是,4:跨险种自动续保,0:否
autoTransrenewFlag
,
-- 21 自动续保标识 1:是,4:跨险种自动续保,0:否
transferPolicyFlag
,
-- 22 新核心车险批单-转保标识1:是,0:否
transferPolicyFlag
,
-- 22 转保标识1:是,0:否
transrenewFlag
,
-- 23 新核心车险批单-续保标识 1:是,4:跨险种续保,0:否
transrenewFlag
-- 23 续保标识 1:是,4:跨险种续保,0:否
policyCreatDate
,
-- 新核心车险批单-核保通过时间
plcSolution
,
policyNo
,
-- 新核心车险批单-保单号
businessOfficeName
,
-- 新核心车险批单-保单归属机构名称
startTime
,
-- 新核心车险批单-起保时间
endTime
,
-- 新核心车险批单-终保时间
netPremium
,
-- 新核心车险批单-不含税保费
premium
,
-- 新核心车险批单-含税保费
plcCar05
,
plcApplicant
,
plcPublicInsurant
,
saleaman
,
-- 新核心车险批单-代理机构代码
saleamanName
,
-- 新核心车险批单-代理机构名称
policySort
,
-- 新核心车险批单-保单种类
sigAndStaExchangeRate
-- 8 到人民币汇率 除了粤港车,车险没有存汇率,模型默认0
from
ODS
.
SOURCE_RMQ_ENDOR_SIT
.
ENDOR
from
ODS
.
SOURCE_RMQ_ENDOR_SIT
.
ENDOR
;
;
\ No newline at end of file
ODS/ODS_POLICY.sql
View file @
0bd75c8e
-- ODS_POLICY ODS_保单业务数据
-- ODS_POLICY ODS_保单业务数据
insert
into
ODS
.
ODS_KAFKA
.
POLICY
insert
into
ODS
.
ODS_KAFKA
.
POLICY
select
select
sigAndStaExchangeRate
,
-- 费率
policyCreatDate
,
endorseNo
,
-- 1 批单号
endorseNo
,
-- 1 批单号
policyNo
,
-- 2 保单号
policyNo
,
-- 2 保单号
businessNo
,
-- 3 业务号
businessNo
,
-- 3 业务号
...
@@ -30,7 +28,11 @@ select
...
@@ -30,7 +28,11 @@ select
recordClerkCode
,
-- 34 归属业务员ID
recordClerkCode
,
-- 34 归属业务员ID
recordClerkName
,
-- 35 归属业务员名称
recordClerkName
,
-- 35 归属业务员名称
staCurAmount
,
-- 38 保险金额
staCurAmount
,
-- 38 保险金额
staCurTaxFee
-- 39 税
staCurTaxFee
,
-- 39 税
policyCreatDate
,
-- 保单创建时间
sigAndStaExchangeRate
,
-- 费率
policySort
,
-- 新核心车险保单-保单种类
businessType
-- 新核心车险保单-业务类型
from
ODS
.
SOURCE_RMQ_POLICY_SIT
.
POLICY
from
ODS
.
SOURCE_RMQ_POLICY_SIT
.
POLICY
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment