|
@@ -1,3 +1,4 @@
|
|
|
|
+/*
|
|
package com.huimv.eartag2.manage2.schedule;
|
|
package com.huimv.eartag2.manage2.schedule;
|
|
|
|
|
|
import cn.hutool.core.date.DateTime;
|
|
import cn.hutool.core.date.DateTime;
|
|
@@ -25,6 +26,7 @@ import java.util.List;
|
|
import java.util.concurrent.ExecutorService;
|
|
import java.util.concurrent.ExecutorService;
|
|
import java.util.concurrent.Executors;
|
|
import java.util.concurrent.Executors;
|
|
|
|
|
|
|
|
+*/
|
|
/**
|
|
/**
|
|
* @Project : huimv.shiwan
|
|
* @Project : huimv.shiwan
|
|
* @Package : com.huimv.biosafety.uface.controller
|
|
* @Package : com.huimv.biosafety.uface.controller
|
|
@@ -32,7 +34,8 @@ import java.util.concurrent.Executors;
|
|
* @Version : 1.0
|
|
* @Version : 1.0
|
|
* @Author : ZhuoNing
|
|
* @Author : ZhuoNing
|
|
* @Create : 2020-12-25
|
|
* @Create : 2020-12-25
|
|
- **/
|
|
|
|
|
|
+ **//*
|
|
|
|
+
|
|
@Configuration //1.主要用于标记配置类,兼备Component的效果。
|
|
@Configuration //1.主要用于标记配置类,兼备Component的效果。
|
|
@EnableScheduling // 2.开启定时任务
|
|
@EnableScheduling // 2.开启定时任务
|
|
public class EartagTask {
|
|
public class EartagTask {
|
|
@@ -57,7 +60,8 @@ public class EartagTask {
|
|
@Autowired
|
|
@Autowired
|
|
private FarmerDayageWeightMapper farmerDayageWeightMapper;
|
|
private FarmerDayageWeightMapper farmerDayageWeightMapper;
|
|
|
|
|
|
- /**
|
|
|
|
|
|
+ */
|
|
|
|
+/**
|
|
* @Method : countEartagOnlineTimes
|
|
* @Method : countEartagOnlineTimes
|
|
* @Description : 判断耳标离线状态
|
|
* @Description : 判断耳标离线状态
|
|
* @Params : []
|
|
* @Params : []
|
|
@@ -65,7 +69,8 @@ public class EartagTask {
|
|
* @Author : ZhuoNing
|
|
* @Author : ZhuoNing
|
|
* @Date : 2022/8/20
|
|
* @Date : 2022/8/20
|
|
* @Time : 19:35
|
|
* @Time : 19:35
|
|
- */
|
|
|
|
|
|
+ *//*
|
|
|
|
+
|
|
// 10分钟
|
|
// 10分钟
|
|
@Scheduled(cron = "0 0/10 * * * ? ")
|
|
@Scheduled(cron = "0 0/10 * * * ? ")
|
|
private void countEartagOnlineTimes() throws IOException, ParseException {
|
|
private void countEartagOnlineTimes() throws IOException, ParseException {
|
|
@@ -81,7 +86,8 @@ public class EartagTask {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
|
+ */
|
|
|
|
+/**
|
|
* @Method : updateDevice
|
|
* @Method : updateDevice
|
|
* @Description : 判断设备离线状态
|
|
* @Description : 判断设备离线状态
|
|
* @Params : []
|
|
* @Params : []
|
|
@@ -89,7 +95,8 @@ public class EartagTask {
|
|
* @Author : ZhuoNing
|
|
* @Author : ZhuoNing
|
|
* @Date : 2022/8/20
|
|
* @Date : 2022/8/20
|
|
* @Time : 19:36
|
|
* @Time : 19:36
|
|
- */
|
|
|
|
|
|
+ *//*
|
|
|
|
+
|
|
// 5分钟
|
|
// 5分钟
|
|
@Scheduled(cron = "0 0/5 * * * ? ")
|
|
@Scheduled(cron = "0 0/5 * * * ? ")
|
|
private void updateDevice() {
|
|
private void updateDevice() {
|
|
@@ -206,3 +213,4 @@ public class EartagTask {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+*/
|