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
9c1f0f39
Commit
9c1f0f39
authored
Jul 03, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改方法
parent
fb65153a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
16 deletions
+13
-16
StationDataTaskImpl.java
...ot/module/jxiop/biz/service/impl/StationDataTaskImpl.java
+8
-7
StationDataTask.java
...oin/amos/boot/module/jxiop/biz/tasks/StationDataTask.java
+5
-9
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/StationDataTaskImpl.java
View file @
9c1f0f39
...
...
@@ -57,17 +57,18 @@ public class StationDataTaskImpl implements IStationDataTask {
@Async
(
"jxiopAsyncExecutor"
)
@Override
public
void
getIndexDto
(
DeviceDto
deviceDto
)
{
//每个分机的指标数据
List
<
IndexDto
>
list
=
null
;
if
(
list
!=
null
&&
list
.
size
()>
0
){}
//对数据切片处理
Lists
.
partition
(
list
,
100
);
//每个分级信息处理
monitorFanIndicatorImpl
.
UpdateMonitorFanIndicator
(
list
);
if
(
list
!=
null
&&
list
.
size
()>
0
){
//对数据切片处理
List
<
List
<
IndexDto
>>
listfp
=
Lists
.
partition
(
list
,
100
);
for
(
List
<
IndexDto
>
indexDtos
:
listfp
)
{
//每个分级信息处理
monitorFanIndicatorImpl
.
UpdateMonitorFanIndicator
(
indexDtos
);
}
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/tasks/StationDataTask.java
View file @
9c1f0f39
...
...
@@ -27,18 +27,14 @@ public class StationDataTask {
public
void
getStationDataTask
(){
//获取所有场站信息
List
<
StationTaksDto
>
list
=
stationDataTask
.
getListStationBasic
();
for
(
StationTaksDto
stationTaksDto
:
list
)
{
//获取分机
List
<
DeviceDto
>
listDeviceDto
=
stationDataTask
.
getListDevice
(
stationTaksDto
);
if
(
listDeviceDto
!=
null
&&
listDeviceDto
.
size
()>
0
){
for
(
DeviceDto
deviceDto
:
listDeviceDto
)
{
stationDataTask
.
getIndexDto
(
deviceDto
);
}
}
}
}
}
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