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
74808415
Commit
74808415
authored
Oct 10, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
3c197ce8
c7690e13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
35 deletions
+35
-35
MonitorFanIndicatorAsync.java
...dule/jxiop/biz/service/impl/MonitorFanIndicatorAsync.java
+33
-33
StationDataTaskImpl.java
...ot/module/jxiop/biz/service/impl/StationDataTaskImpl.java
+2
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorAsync.java
View file @
74808415
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
com.google.common.collect.Lists
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.IndexDto
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Component
;
import
java.util.List
;
/**
* @description:
* @author: tw
* @createDate: 2023/7/4
*/
@Component
public
class
MonitorFanIndicatorAsync
{
@Autowired
MonitorFanIndicatorImpl
monitorFanIndicatorImpl
;
@Value
(
"${station.section}"
)
private
int
stationSection
;
@Value
(
"${station.isok}"
)
private
boolean
isok
;
@Async
(
"jxiopAsyncExecutor"
)
public
void
UpdateMonitorFanIndicator
(
List
<
IndexDto
>
list
){
monitorFanIndicatorImpl
.
UpdateMonitorFanIndicator
(
list
);
}
}
//
package com.yeejoin.amos.boot.module.jxiop.biz.service.impl;
//
//
import com.google.common.collect.Lists;
//
import com.yeejoin.amos.boot.module.jxiop.api.dto.IndexDto;
//
import org.springframework.beans.factory.annotation.Autowired;
//
import org.springframework.beans.factory.annotation.Value;
//
import org.springframework.scheduling.annotation.Async;
//
import org.springframework.stereotype.Component;
//
//
import java.util.List;
//
/
//
**
//
* @description:
//
* @author: tw
//
* @createDate: 2023/7/4
//
*/
//
@Component
//
public class MonitorFanIndicatorAsync {
//
@Autowired
//
MonitorFanIndicatorImpl monitorFanIndicatorImpl;
//
@Value("${station.section}")
//
private int stationSection;
//
@Value("${station.isok}")
//
private boolean isok;
//
//
//
@Async("jxiopAsyncExecutor")
//
public void UpdateMonitorFanIndicator(List<IndexDto> list){
//
monitorFanIndicatorImpl.UpdateMonitorFanIndicator(list);
//
}
//
//
//
}
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/StationDataTaskImpl.java
View file @
74808415
...
...
@@ -36,8 +36,8 @@ public class StationDataTaskImpl {
// @Autowired
// InfluxDButils influxDButils;
@Autowired
MonitorFanIndicatorAsync
monitorFanIndicatorAsync
;
//
@Autowired
//
MonitorFanIndicatorAsync monitorFanIndicatorAsync;
/**
* 获取 List<StationTaksDto>
...
...
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