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
67788460
Commit
67788460
authored
Jul 03, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据同步方法实现
parent
b78f49f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
+60
-0
StationDataTaskImpl.java
...ot/module/jxiop/biz/service/impl/StationDataTaskImpl.java
+60
-0
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
0 → 100644
View file @
67788460
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.DeviceDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.IndexDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.StationTaksDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.StationBasic
;
import
com.yeejoin.amos.boot.module.jxiop.api.service.IStationDataTask
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.SjglZsjZsbtz
;
import
com.yeejoin.amos.boot.module.jxiop.biz.entity.TpriDmpDatabook
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
StationDataTaskImpl
implements
IStationDataTask
{
@Autowired
StationBasicServiceImpl
stationBasicServiceImpl
;
@Autowired
SjglZsjZsbtzServiceImpl
sjglZsjZsbtzServiceImpl
;
@Autowired
TpriDmpDatabookServiceImpl
tpriDmpDatabookServiceImpl
;
@Override
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
;
}
@Override
public
List
<
DeviceDto
>
getListDevice
(
StationTaksDto
stationTaksDto
)
{
List
<
DeviceDto
>
deviceDtoList
=
new
ArrayList
<>();
TpriDmpDatabook
tpriDmpDatabook
=
tpriDmpDatabookServiceImpl
.
getTpriDmpDatabookByDataName
(
"风机"
);
List
<
SjglZsjZsbtz
>
sjglZsjZsbtzList
=
sjglZsjZsbtzServiceImpl
.
getSjglZsjZsbtzList
(
tpriDmpDatabook
.
getDataid
(),
stationTaksDto
.
getStationNumber
());
sjglZsjZsbtzList
.
forEach
(
sjglZsjZsbtz
->
{
DeviceDto
deviceDto
=
new
DeviceDto
();
deviceDto
.
setGateway
(
stationTaksDto
.
getGateway
());
deviceDto
.
setNumberName
(
""
);
});
return
deviceDtoList
;
}
@Override
public
List
<
IndexDto
>
getIndexDto
(
DeviceDto
deviceDto
)
{
return
null
;
}
@Override
public
void
setMonitorFanIndicator
(
List
<
IndexDto
>
list
)
{
}
}
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