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
89b8b438
Commit
89b8b438
authored
Aug 09, 2022
by
胡涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
指标统计sql脚本
parent
9337f348
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ZB_ODS/ZB_ODS_CBDATA.sql
ZB_ODS/ZB_ODS_CBDATA.sql
+2
-2
ZB_ODS/ZB_ODS_CD_BUSINESSNATURE.sql
ZB_ODS/ZB_ODS_CD_BUSINESSNATURE.sql
+6
-0
No files found.
ZB_ODS/ZB_ODS_CBDATA.sql
View file @
89b8b438
...
@@ -30,7 +30,7 @@ CREATE TEMPORARY VIEW VIEW_HIS_CBDATA AS
...
@@ -30,7 +30,7 @@ CREATE TEMPORARY VIEW VIEW_HIS_CBDATA AS
,
'bd'
as
flag
-- 保单或批单标记
,
'bd'
as
flag
-- 保单或批单标记
,
proctime
as
proctime
-- ,ROW_NUMBER() OVER(PARTITION BY policyNo,businessOffice,netPremium ORDER BY uwConclueDate DESC) as rownum
,
proctime
as
proctime
-- ,ROW_NUMBER() OVER(PARTITION BY policyNo,businessOffice,netPremium ORDER BY uwConclueDate DESC) as rownum
from
ZB_ODS
.
ZB_SOURCE_RMQ_POLICY_SIT
.
POLICY
-- 保单业务数据
from
ZB_ODS
.
ZB_SOURCE_RMQ_POLICY_SIT
.
POLICY
-- 保单业务数据
where
`uwConclueDate`
=
DATE_FORMAT
(
LOCALTIMESTAMP
,
'yyyyMMdd'
)
where
LongTimeToStringUDF
(
uwConclueDate
,
'yyyyMMdd'
)
=
DATE_FORMAT
(
LOCALTIMESTAMP
,
'yyyyMMdd'
)
and
(
LEFT
(
productCode
,
2
)
=
'05'
or
(
LEFT
(
productCode
,
2
)
<>
'05'
and
JsonValueUDF
(
plcSolution
[
1
].
plcCoins
,
'plcCoinsBasicInformation[1].coinsIdentity'
)
=
'1'
))
and
(
LEFT
(
productCode
,
2
)
=
'05'
or
(
LEFT
(
productCode
,
2
)
<>
'05'
and
JsonValueUDF
(
plcSolution
[
1
].
plcCoins
,
'plcCoinsBasicInformation[1].coinsIdentity'
)
=
'1'
))
union
all
union
all
...
@@ -56,7 +56,7 @@ CREATE TEMPORARY VIEW VIEW_HIS_CBDATA AS
...
@@ -56,7 +56,7 @@ CREATE TEMPORARY VIEW VIEW_HIS_CBDATA AS
,
proctime
as
proctime
,
proctime
as
proctime
-- ,ROW_NUMBER() OVER(PARTITION BY endorseNo,businessOffice,plpEndorse.staCurPremiumVariation ORDER BY uwConclueDate DESC) as rownum
-- ,ROW_NUMBER() OVER(PARTITION BY endorseNo,businessOffice,plpEndorse.staCurPremiumVariation ORDER BY uwConclueDate DESC) as rownum
from
ZB_ODS
.
ZB_SOURCE_RMQ_ENDOR_SIT
.
ENDOR
-- 批单业务数据
from
ZB_ODS
.
ZB_SOURCE_RMQ_ENDOR_SIT
.
ENDOR
-- 批单业务数据
where
`uwConclueDate`
=
DATE_FORMAT
(
LOCALTIMESTAMP
,
'yyyyMMdd'
)
where
LongTimeToStringUDF
(
uwConclueDate
,
'yyyyMMdd'
)
=
DATE_FORMAT
(
LOCALTIMESTAMP
,
'yyyyMMdd'
)
and
(
LEFT
(
productCode
,
2
)
=
'05'
or
(
LEFT
(
productCode
,
2
)
<>
'05'
and
JsonValueUDF
(
plcSolution
[
1
].
plcCoins
,
'plcCoinsBasicInformation[1].coinsIdentity'
)
=
'1'
))
and
(
LEFT
(
productCode
,
2
)
=
'05'
or
(
LEFT
(
productCode
,
2
)
<>
'05'
and
JsonValueUDF
(
plcSolution
[
1
].
plcCoins
,
'plcCoinsBasicInformation[1].coinsIdentity'
)
=
'1'
))
;
;
...
...
ZB_ODS/ZB_ODS_CD_BUSINESSNATURE.sql
0 → 100644
View file @
89b8b438
-- ZB_ODS_CD_BUSINESSNATURE ZB_ODS_业务来源表
insert
into
ZB_ODS
.
ZB_ODS_MYSQL
.
CD_BUSINESSNATURE
select
CODE
,
CODEDESC
from
ZB_ODS
.
ZB_SOURCE_ORACLE_ANAREPORT11
.
CD_BUSINESSNATURE
\ No newline at end of file
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