Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
fad9a2b4
Commit
fad9a2b4
authored
Nov 21, 2024
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改绍兴现场反馈查询iot数据横坐标排序及指标数据出不来问题
parent
b5bb31e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+15
-8
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
fad9a2b4
...
...
@@ -2370,8 +2370,15 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
Map
<
String
,
String
>
timeAndValue
=
new
HashMap
<>();
for
(
Map
<
String
,
String
>
mapList
:
sortedList
)
{
if
(
mapList
.
containsKey
(
indexKey
))
{
timeAndValue
.
put
(
mapList
.
get
(
"time"
),
mapList
.
get
(
indexKey
));
allTimeList
.
add
(
mapList
.
get
(
"time"
));
boolean
isNum
=
StringUtil
.
isNumeric
(
mapList
.
get
(
indexKey
));
if
(
isNum
)
{
try
{
timeAndValue
.
put
(
change
(
mapList
.
get
(
"time"
)),
mapList
.
get
(
indexKey
));
allTimeList
.
add
(
change
(
mapList
.
get
(
"time"
)));
}
catch
(
ParseException
e
)
{
throw
new
RuntimeException
(
e
);
}
}
}
}
dateValueMapInfo
.
put
(
equipInfo
.
getId
(),
timeAndValue
);
...
...
@@ -2398,14 +2405,11 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
}
values
.
add
(
lastValue
);
try
{
allTimeListNew
.
add
(
change
(
allTimeList
.
get
(
i
)));
}
catch
(
ParseException
e
)
{
throw
new
RuntimeException
(
e
);
}
allTimeListNew
.
add
(
allTimeList
.
get
(
i
));
}
yaxisList
.
add
(
values
);
Collections
.
sort
(
allTimeListNew
);
equipTrendResultVo
.
setxAxisData
(
allTimeListNew
);
}
equipTrendResultVo
.
setyAxisData
(
yaxisList
);
...
...
@@ -2584,7 +2588,10 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
for
(
String
key
:
equipIndexKeyNew
)
{
if
(
mapList
.
containsKey
(
key
)
&&
!
ObjectUtils
.
isEmpty
(
mapList
.
get
(
key
)))
{
if
(
stringIntegerHashMapIn
.
containsKey
(
dateX
))
{
stringIntegerHashMapIn
.
get
(
dateX
).
add
(
new
BigDecimal
(
mapList
.
get
(
key
)));
boolean
isNum
=
StringUtil
.
isNumeric
(
mapList
.
get
(
key
));
if
(
isNum
)
{
stringIntegerHashMapIn
.
get
(
dateX
).
add
(
new
BigDecimal
(
mapList
.
get
(
key
)));
}
}
else
{
List
<
BigDecimal
>
bigDecimals
=
new
ArrayList
<>();
if
(!
ObjectUtils
.
isEmpty
(
mapList
.
get
(
key
)))
{
...
...
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