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
828839f4
Commit
828839f4
authored
Jul 05, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
给代码添加注释
parent
d453ff66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
StationDataTaskImpl.java
...ot/module/jxiop/biz/service/impl/StationDataTaskImpl.java
+13
-10
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 @
828839f4
...
...
@@ -45,24 +45,27 @@ public class StationDataTaskImpl {
@Autowired
MonitorFanIndicatorAsync
monitorFanIndicatorAsync
;
/**
* 获取 List<StationTaksDto>
* @return <StationTaksDto>
*/
public
List
<
StationTaksDto
>
getListStationBasic
()
{
List
<
StationTaksDto
>
stationTaksDtoList
=
new
ArrayList
<>();
List
<
StationBasic
>
stationBasicList
=
stationBasicServiceImpl
.
list
();
stationBasicList
.
forEach
(
stationBasic
->
{
StationTaksDto
stationTaksDto
=
new
StationTaksDto
();
stationTaksDto
.
setStationNumber
(
stationBasic
.
getStationNumber
());
stationTaksDto
.
setGateway
(
stationBasic
.
getGatewayId
());
stationTaksDtoList
.
add
(
stationTaksDto
);
});
return
stationTaksDtoList
;
return
stationBasicServiceImpl
.
getStationTaksDtoList
();
}
/**
* @deprecated 获取该场站下所有的风机信息
* @param stationTaksDto
* @return List<DeviceDto> 设备信息列表
*/
public
List
<
DeviceDto
>
getListDevice
(
StationTaksDto
stationTaksDto
)
{
List
<
DeviceDto
>
deviceDtoList
=
new
ArrayList
<>();
//获取风机的字典id
TpriDmpDatabook
tpriDmpDatabook
=
tpriDmpDatabookServiceImpl
.
getTpriDmpDatabookByDataName
(
"风机"
);
//根据字典id与场站编码获取所有的风机列表
List
<
SjglZsjZsbtz
>
sjglZsjZsbtzList
=
sjglZsjZsbtzServiceImpl
.
getSjglZsjZsbtzList
(
tpriDmpDatabook
.
getDataid
(),
stationTaksDto
.
getStationNumber
());
//遍历风机列表对于需要的参数进行组装
sjglZsjZsbtzList
.
forEach
(
sjglZsjZsbtz
->
{
DeviceDto
deviceDto
=
new
DeviceDto
();
deviceDto
.
setGateway
(
stationTaksDto
.
getGateway
());
...
...
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