Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hp-smart
Commits
73712050
Commit
73712050
authored
Oct 19, 2024
by
lyy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://129.211.46.84:8800/platform/hp-smart
into dev-sx
parents
2498e0d2
7d01300f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
ServiceHPBI003.java
.../java/com/baosight/hpjx/hp/bi/service/ServiceHPBI003.java
+12
-10
No files found.
src/main/java/com/baosight/hpjx/hp/bi/service/ServiceHPBI003.java
View file @
73712050
...
...
@@ -314,20 +314,22 @@ public class ServiceHPBI003 extends ServiceBase {
}
List
<
Map
>
result
=
new
ArrayList
<>();
List
<
Map
>
listMap
=
DaoBase
.
getInstance
().
query
(
"HPBI003.queryDayWts"
,
params
,
0
,
100
);
Map
<
Object
,
Map
<
Object
,
List
<
Map
>>>
mapList
=
listMap
.
stream
().
collect
(
Collectors
.
groupingBy
(
map
->
map
.
get
(
"date"
),
Collectors
.
groupingBy
(
map
->
map
.
get
(
"series"
))));
for
(
Object
key:
mapList
.
keySet
())
{
List
listMap2
=
listMap
.
stream
().
map
(
map
->
map
.
get
(
"date"
)).
sorted
().
distinct
().
collect
(
Collectors
.
toList
());
Map
<
Object
,
List
<
Map
>>
listMap1
=
listMap
.
stream
().
collect
(
Collectors
.
groupingBy
(
m
->
m
.
get
(
"series"
)));
for
(
Object
key:
listMap1
.
keySet
())
{
Map
<
Object
,
Object
>
map
=
new
HashMap
<>();
List
<
Map
>
list1
=
new
ArrayList
<>(
);
Map
<
Object
,
List
<
Map
>>
listMap1
=
mapList
.
get
(
key
);
for
(
Object
key1:
listMap1
.
keySet
())
{
Map
<
Object
,
Object
>
map2
=
new
HashMap
<>();
map2
.
put
(
key1
,
listMap1
.
get
(
key1
).
stream
().
map
(
m
->
m
.
get
(
"wt"
)).
collect
(
Collectors
.
toList
()));
list1
.
add
(
map
2
);
map
.
put
(
"name"
,
key
);
map
.
put
(
"type"
,
"line"
);
map
.
put
(
"stack"
,
"Total"
);
List
list1
=
new
ArrayList
<>();
for
(
Map
map1:
listMap1
.
get
(
key
))
{
list1
.
add
(
map
1
.
get
(
"wt"
)
);
}
map
.
put
(
key
,
list1
);
map
.
put
(
"data"
,
list1
);
result
.
add
(
map
);
}
inInfo
.
set
(
"date"
,
mapList
.
keySet
());
inInfo
.
set
(
"date"
,
listMap2
);
inInfo
.
set
(
"name"
,
listMap1
.
keySet
());
inInfo
.
set
(
"result"
,
result
);
return
inInfo
;
}
...
...
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