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
4e3a1943
Commit
4e3a1943
authored
Dec 22, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug 修改
parent
744ffa81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
IotIndexResVo.java
...java/com/yeejoin/equipmanage/common/vo/IotIndexResVo.java
+2
-0
TopographyController.java
.../yeejoin/equipmanage/controller/TopographyController.java
+4
-3
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/vo/IotIndexResVo.java
View file @
4e3a1943
...
...
@@ -32,4 +32,6 @@ public class IotIndexResVo {
private
List
<
IotDataVO
>
iotData
;
private
String
equipId
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/TopographyController.java
View file @
4e3a1943
...
...
@@ -990,6 +990,7 @@ public class TopographyController extends AbstractBaseController {
vo
.
setNameKey
(
index
.
getPerfQuotaDefinitionId
());
vo
.
setUnit
(
index
.
getUnitName
());
vo
.
setTimes
(
dateMap
.
get
(
index
.
getPerfQuotaDefinitionId
()));
vo
.
setEquipId
(
specId
);
if
(
waterLevelIndexKey
.
contains
(
vo
.
getNameKey
()))
{
resContainsWaterLevelList
.
add
(
vo
);
}
else
{
...
...
@@ -1008,14 +1009,14 @@ public class TopographyController extends AbstractBaseController {
}
List
<
Date
>
containsWaterDates
=
new
ArrayList
<>();
Map
<
Lo
ng
,
Map
<
Date
,
IotDataVO
>>
iotDataAndDateMap
=
new
HashMap
<>();
Map
<
Stri
ng
,
Map
<
Date
,
IotDataVO
>>
iotDataAndDateMap
=
new
HashMap
<>();
finalResContainsWaterLevel
.
stream
().
forEach
(
item
->
{
containsWaterDates
.
addAll
(
item
.
getTimes
());
Map
<
Date
,
IotDataVO
>
dateDataMap
=
new
HashMap
<>();
for
(
int
i
=
0
;
i
<
item
.
getTimes
().
size
();
i
++)
{
dateDataMap
.
put
(
item
.
getTimes
().
get
(
i
),
item
.
getIotData
().
get
(
i
));
}
iotDataAndDateMap
.
put
(
item
.
getId
(),
dateDataMap
);
iotDataAndDateMap
.
put
(
item
.
getId
()
+
item
.
getEquipId
()
,
dateDataMap
);
});
...
...
@@ -1030,7 +1031,7 @@ public class TopographyController extends AbstractBaseController {
iotIndexRes
.
setId
(
indexResVo
.
getId
());
iotIndexRes
.
setNameKey
(
indexResVo
.
getNameKey
());
iotIndexRes
.
setUnit
(
indexResVo
.
getUnit
());
Map
<
Date
,
IotDataVO
>
dateIotDataVOMap
=
iotDataAndDateMap
.
get
(
indexResVo
.
getId
());
Map
<
Date
,
IotDataVO
>
dateIotDataVOMap
=
iotDataAndDateMap
.
get
(
indexResVo
.
getId
()
+
indexResVo
.
getEquipId
()
);
List
<
IotDataVO
>
list
=
new
ArrayList
<>();
collect
.
forEach
(
item
->
{
IotDataVO
iotDataVO
=
new
IotDataVO
();
...
...
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