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
dc7cdc6d
Commit
dc7cdc6d
authored
Aug 25, 2022
by
王东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
指标计算承保字段调整
parent
f6303fc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
ZB_DM/承保指标/new今日签单/ZB_DM_今日签单(合并).sql
ZB_DM/承保指标/new今日签单/ZB_DM_今日签单(合并).sql
+13
-3
No files found.
ZB_DM/承保指标/new今日签单/ZB_DM_今日签单(合并).sql
View file @
dc7cdc6d
...
@@ -12,10 +12,20 @@ SELECT
...
@@ -12,10 +12,20 @@ SELECT
,
s1
.
`startTime`
as
`startTime`
,
s1
.
`startTime`
as
`startTime`
,
s1
.
`risk`
as
`risk`
,
s1
.
`risk`
as
`risk`
,
sum
(
cast
(
s1
.
`cost`
as
DECIMAL
(
18
,
2
)))
as
`cost`
,
sum
(
cast
(
s1
.
`cost`
as
DECIMAL
(
18
,
2
)))
as
`cost`
from
ZB_ODS
.
ZB_ODS_KAFKA
.
CBDATA
from
ZB_ODS
.
ZB_ODS_KAFKA
.
CBDATA
s1
left
join
ZB_DM
.
ZB_DM_MYSQL
.
TEAM
for
system_time
as
of
s1
.
proctime
as
t1
on
s1
.
`uwConclueDate`
=
s1
.
`uwConclueDate`
and
s1
.
`LEVEL1COMCODE`
=
s1
.
`LEVEL1COMCODE`
and
s1
.
`LEVEL2COMCODE`
=
s1
.
`LEVEL2COMCODE`
and
s1
.
`LEVEL3COMCODE`
=
s1
.
`LEVEL3COMCODE`
and
s1
.
`LEVEL4COMCODE`
=
s1
.
`LEVEL4COMCODE`
and
s1
.
`startTime`
=
s1
.
`startTime`
and
s1
.
`risk`
=
s1
.
`risk`
and
left
(
t1
.
log_time
,
8
)
=
DATE_FORMAT
(
LOCALTIMESTAMP
,
'yyyyMMdd'
)
where
where
`COMNAME`
is
not
null
s1
.
`COMNAME`
is
not
null
and
`uwConclueDate`
=
DATE_FORMAT
(
LOCALTIMESTAMP
,
'yyyyMMdd'
)
and
s1
.
`uwConclueDate`
=
DATE_FORMAT
(
LOCALTIMESTAMP
,
'yyyyMMdd'
)
and
LongTimeToStringUDF
(
s1
.
log_time
,
'yyyyMMdd HH'
)
=
DATE_FORMAT
(
LOCALTIMESTAMP
,
'yyyyMMdd HH'
)
group
by
group
by
s1
.
`uwConclueDate`
s1
.
`uwConclueDate`
,
s1
.
`LEVEL1COMCODE`
,
s1
.
`LEVEL1COMCODE`
...
...
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