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
d65f4088
Commit
d65f4088
authored
Jun 16, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改物联数据丢失
parent
38a6eaec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
TopographyController.java
.../yeejoin/equipmanage/controller/TopographyController.java
+11
-8
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 @
d65f4088
...
@@ -773,18 +773,21 @@ public class TopographyController extends AbstractBaseController {
...
@@ -773,18 +773,21 @@ public class TopographyController extends AbstractBaseController {
}
}
List
<
IotDataVO
>
timeList
=
iotDatalist
.
stream
().
filter
(
x
->
"time"
.
equals
(
x
.
getKey
())).
collect
(
Collectors
.
toList
());
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
);
if
(
0
<
indexes
.
size
())
{
if
(
0
<
indexes
.
size
())
{
int
j
=
0
;
int
j
=
0
;
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
for
(
int
i
=
0
;
i
<
iotDatalist
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
timeList
.
size
();
i
++)
{
TopographyIotVo
iotVo
=
new
TopographyIotVo
();
TopographyIotVo
iotVo
=
new
TopographyIotVo
();
List
<
TopographyIotDataVO
>
lists
=
new
ArrayList
<>();
List
<
TopographyIotDataVO
>
lists
=
new
ArrayList
<>();
if
(
i
==
0
)
{
//
if (i == 0) {
map
.
put
(
iotDatalist
.
get
(
i
).
getKey
(),
iotDatalist
.
get
(
i
).
getValue
());
//
map.put(iotDatalist.get(i).getKey(), iotDatalist.get(i).getValue());
}
//
}
if
(
map
.
containsKey
(
iotDatalist
.
get
(
i
).
getKey
()))
{
//
if (map.containsKey(iotDatalist.get(i).getKey())) {
j
++;
//
j++;
}
//
}
for
(
EquipmentSpecificIndex
x
:
indexes
)
{
for
(
EquipmentSpecificIndex
x
:
indexes
)
{
if
(
x
.
getNameKey
().
equals
(
iotDatalist
.
get
(
i
).
getKey
()))
{
if
(
x
.
getNameKey
().
equals
(
iotDatalist
.
get
(
i
).
getKey
()))
{
TopographyIotDataVO
dataVO
=
new
TopographyIotDataVO
();
TopographyIotDataVO
dataVO
=
new
TopographyIotDataVO
();
...
@@ -797,7 +800,7 @@ public class TopographyController extends AbstractBaseController {
...
@@ -797,7 +800,7 @@ public class TopographyController extends AbstractBaseController {
try
{
try
{
//Date date = DateUtils.dateParse(String.valueOf(timeList.get(j-1).getValue()), DateUtils.DATE_TIME_T_PATTERN);
//Date date = DateUtils.dateParse(String.valueOf(timeList.get(j-1).getValue()), DateUtils.DATE_TIME_T_PATTERN);
String
value
=
String
.
valueOf
(
timeList
.
get
(
j
-
1
).
getValue
());
String
value
=
String
.
valueOf
(
timeList
.
get
(
i
).
getValue
());
String
strDate
=
value
.
substring
(
0
,
19
);
String
strDate
=
value
.
substring
(
0
,
19
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
ISO8601_DATE_HOUR_MIN_SEC
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
ISO8601_DATE_HOUR_MIN_SEC
);
SimpleDateFormat
sdf1
=
new
SimpleDateFormat
(
DateUtils
.
DATE_TIME_PATTERN
);
SimpleDateFormat
sdf1
=
new
SimpleDateFormat
(
DateUtils
.
DATE_TIME_PATTERN
);
...
...
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