kangwei:
定时任务
正在显示
2 个修改的文件
包含
4 行增加
和
5 行删除
1 | package com.skua.modules.job; | 1 | package com.skua.modules.job; |
2 | |||
3 | import com.alibaba.fastjson.JSONObject; | ||
4 | import com.skua.core.util.DateUtils; | 2 | import com.skua.core.util.DateUtils; |
5 | import com.skua.modules.alarmtmp.entity.SysFactoryDevice; | 3 | import com.skua.modules.alarmtmp.entity.SysFactoryDevice; |
6 | import com.skua.modules.alarmtmp.service.ISysFactoryDeviceService; | 4 | import com.skua.modules.alarmtmp.service.ISysFactoryDeviceService; |
7 | import com.skua.modules.report.service.IFReportItemvService; | ||
8 | import com.skua.modules.report.service.IReportDataService; | 5 | import com.skua.modules.report.service.IReportDataService; |
9 | import com.skua.modules.system.datestandard.entity.SysMonitorMetricInfo; | 6 | import com.skua.modules.system.datestandard.entity.SysMonitorMetricInfo; |
10 | import com.skua.modules.system.datestandard.service.ISysMonitorMetricInfoService; | 7 | import com.skua.modules.system.datestandard.service.ISysMonitorMetricInfoService; |
... | @@ -13,8 +10,8 @@ import lombok.extern.slf4j.Slf4j; | ... | @@ -13,8 +10,8 @@ import lombok.extern.slf4j.Slf4j; |
13 | import org.quartz.Job; | 10 | import org.quartz.Job; |
14 | import org.quartz.JobExecutionContext; | 11 | import org.quartz.JobExecutionContext; |
15 | import org.springframework.beans.factory.annotation.Autowired; | 12 | import org.springframework.beans.factory.annotation.Autowired; |
13 | import org.springframework.stereotype.Component; | ||
16 | 14 | ||
17 | import javax.annotation.Resource; | ||
18 | import java.text.DecimalFormat; | 15 | import java.text.DecimalFormat; |
19 | import java.util.HashMap; | 16 | import java.util.HashMap; |
20 | import java.util.List; | 17 | import java.util.List; |
... | @@ -25,6 +22,7 @@ import java.util.Map; | ... | @@ -25,6 +22,7 @@ import java.util.Map; |
25 | */ | 22 | */ |
26 | 23 | ||
27 | @Slf4j | 24 | @Slf4j |
25 | @Component | ||
28 | public class DayDataSyncJob implements Job { | 26 | public class DayDataSyncJob implements Job { |
29 | 27 | ||
30 | @Autowired | 28 | @Autowired |
... | @@ -203,5 +201,4 @@ public class DayDataSyncJob implements Job { | ... | @@ -203,5 +201,4 @@ public class DayDataSyncJob implements Job { |
203 | } | 201 | } |
204 | 202 | ||
205 | } | 203 | } |
206 | |||
207 | } | 204 | } | ... | ... |
... | @@ -10,6 +10,7 @@ import org.quartz.Job; | ... | @@ -10,6 +10,7 @@ import org.quartz.Job; |
10 | import org.quartz.JobExecutionContext; | 10 | import org.quartz.JobExecutionContext; |
11 | import org.springframework.beans.factory.annotation.Autowired; | 11 | import org.springframework.beans.factory.annotation.Autowired; |
12 | import org.springframework.jdbc.core.JdbcTemplate; | 12 | import org.springframework.jdbc.core.JdbcTemplate; |
13 | import org.springframework.stereotype.Component; | ||
13 | 14 | ||
14 | import java.util.HashMap; | 15 | import java.util.HashMap; |
15 | import java.util.List; | 16 | import java.util.List; |
... | @@ -20,6 +21,7 @@ import java.util.Map; | ... | @@ -20,6 +21,7 @@ import java.util.Map; |
20 | */ | 21 | */ |
21 | 22 | ||
22 | @Slf4j | 23 | @Slf4j |
24 | @Component | ||
23 | public class NFDataSyncJob implements Job { | 25 | public class NFDataSyncJob implements Job { |
24 | 26 | ||
25 | @Autowired | 27 | @Autowired | ... | ... |
-
请 注册 或 登录 后发表评论