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
b2999ff6
Commit
b2999ff6
authored
Mar 09, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
53b35b13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
12 deletions
+21
-12
TopographyController.java
.../yeejoin/equipmanage/controller/TopographyController.java
+21
-12
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/TopographyController.java
View file @
b2999ff6
...
...
@@ -778,7 +778,23 @@ public class TopographyController extends AbstractBaseController {
}
}
List
<
IotDataVO
>
timeList
=
iotDatalist
.
stream
().
filter
(
x
->
"time"
.
equals
(
x
.
getKey
())).
collect
(
Collectors
.
toList
());
List
<
EquipmentSpecificIndex
>
indexes
=
equipmentSpecificIndexMapper
.
getEquipmentSpeIndexByIotCode
(
iotCode
);
List
<
EquipmentSpecificIndex
>
indexes
=
equipmentSpecificIndexMapper
.
getEquipmentSpeIndexByIotCode
(
iotCode
);
List
<
IotDataVO
>
timeList1
=
new
ArrayList
<>();
for
(
IotDataVO
iotDataVO
:
iotDatalist
)
{
boolean
flag
=
false
;
for
(
EquipmentSpecificIndex
x
:
indexes
)
{
if
(
x
.
getNameKey
().
equals
(
iotDataVO
.
getKey
()))
{
timeList1
.
add
(
iotDataVO
);
}
}
}
if
(
0
<
indexes
.
size
())
{
int
j
=
0
;
...
...
@@ -789,19 +805,13 @@ public class TopographyController extends AbstractBaseController {
TopographyIotVo
iotVo
=
new
TopographyIotVo
();
List
<
TopographyIotDataVO
>
lists
=
new
ArrayList
<>();
TopographyIotDataVO
dataVO
=
new
TopographyIotDataVO
();
// if (i == 0) {
// map.put(iotDatalist.get(i).getKey(), iotDatalist.get(i).getValue());
// }
// if (map.containsKey(iotDatalist.get(i).getKey())) {
// j++;
// }
for
(
IotDataVO
iotDataVO
:
iotDatalist
)
{
for
(
EquipmentSpecificIndex
x
:
indexes
)
{
if
(
x
.
getNameKey
().
equals
(
iotDataVO
.
getKey
()))
{
if
(
x
.
getNameKey
().
equals
(
timeList1
.
get
(
i
).
getKey
()))
{
dataVO
.
setId
(
x
.
getId
());
dataVO
.
setName
(
x
.
getIndexName
());
dataVO
.
setValue
(
iotDataVO
.
getValue
());
dataVO
.
setValue
(
timeList1
.
get
(
i
)
.
getValue
());
dataVO
.
setUnit
(
x
.
getIndexUnitName
());
try
{
//Date date = DateUtils.dateParse(String.valueOf(timeList.get(j-1).getValue()), DateUtils.DATE_TIME_T_PATTERN);
...
...
@@ -820,7 +830,6 @@ public class TopographyController extends AbstractBaseController {
}
}
}
lists
.
add
(
dataVO
);
iotVo
.
setList
(
lists
);
list
.
add
(
iotVo
);
...
...
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