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
84026da8
Commit
84026da8
authored
Sep 09, 2022
by
王东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
指标计算承保字段调整
parent
2803c5b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
10 deletions
+26
-10
ZB_ODS/ZB_ODS_CBDATA.sql
ZB_ODS/ZB_ODS_CBDATA.sql
+26
-10
No files found.
ZB_ODS/ZB_ODS_CBDATA.sql
View file @
84026da8
...
...
@@ -53,12 +53,20 @@ from (
*
cast
(
sigAndStaExchangeRate
as
decimal
(
18
,
4
))
*
(
case
when
coinsCode
=
'0'
and
coinsLinkCode
=
'0'
then
1
-- 非共保非联保
when
coinsCode
=
'0'
and
coinsLinkCode
<>
'0'
then
JsonGetCoinsRate
(
cast
(
plcSolution
[
1
].
plcCoins
.
plcLinkBasicInformat
as
varchar
))
/
100
-- 纯联保
when
coinsCode
=
'0'
then
(
case
when
coinsLinkCode
=
'0'
then
1
-- 非共保非联保
else
JsonGetCoinsRate
(
cast
(
plcSolution
[
1
].
plcCoins
.
plcLinkBasicInformat
as
varchar
))
/
100
-- 纯联保
end
)
else
(
case
when
coinsLinkCode
=
'0'
then
JsonGetCoinsRate
(
cast
(
plcSolution
[
1
].
plcCoins
.
plcCoinsBasicInformation
as
varchar
))
/
100
-- 纯共保
else
(
JsonGetCoinsRate
(
cast
(
plcSolution
[
1
].
plcCoins
.
plcCoinsBasicInformation
as
varchar
)
)
/
100
)
*
(
JsonGetCoinsRate
(
cast
(
plcSolution
[
1
].
plcCoins
.
plcLinkBasicInformat
as
varchar
))
/
100
)
-- 即联又共
end
)
end
)
as
`cost`
-- 不含税保费
,
policyNo
as
`no`
-- 保单号
,
case
...
...
@@ -86,11 +94,19 @@ from (
*
cast
(
sigAndStaExchangeRate
as
decimal
(
18
,
4
))
*
(
case
when
coinsCode
=
'0'
and
coinsLinkCode
=
'0'
then
1
-- 非共保非联保
when
coinsCode
=
'0'
and
coinsLinkCode
<>
'0'
then
JsonGetCoinsRate
(
cast
(
plcSolution
[
1
].
plcCoins
.
plcLinkBasicInformat
as
varchar
))
/
100
-- 纯联保
when
coinsCode
=
'0'
then
(
case
when
coinsLinkCode
=
'0'
then
1
-- 非共保非联保
else
JsonGetCoinsRate
(
cast
(
plcSolution
[
1
].
plcCoins
.
plcLinkBasicInformat
as
varchar
))
/
100
-- 纯联保
end
)
else
(
case
when
coinsLinkCode
=
'0'
then
JsonGetCoinsRate
(
cast
(
plcSolution
[
1
].
plcCoins
.
plcCoinsBasicInformation
as
varchar
))
/
100
-- 纯共保
else
(
JsonGetCoinsRate
(
cast
(
plcSolution
[
1
].
plcCoins
.
plcCoinsBasicInformation
as
varchar
)
)
/
100
)
*
(
JsonGetCoinsRate
(
cast
(
plcSolution
[
1
].
plcCoins
.
plcLinkBasicInformat
as
varchar
)
)
/
100
)
-- 即联又共
*
(
JsonGetCoinsRate
(
cast
(
plcSolution
[
1
].
plcCoins
.
plcLinkBasicInformat
as
varchar
))
/
100
)
-- 即联又共
end
)
end
)
as
`cost`
-- 不含税保费
,
endorseNo
as
`no`
-- 批单号
...
...
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