|
@@ -62,6 +62,7 @@ public class ScheduleTask {
|
|
// 每天02:00:00 执行生成台账
|
|
// 每天02:00:00 执行生成台账
|
|
@Scheduled(cron = everyDay02)
|
|
@Scheduled(cron = everyDay02)
|
|
private void createAccount() {
|
|
private void createAccount() {
|
|
|
|
+ if(type.equals("dev")||type.equals("local"))return;
|
|
log.debug("执行了定时任务={}", "每天02:00:00生成台账");
|
|
log.debug("执行了定时任务={}", "每天02:00:00生成台账");
|
|
this.workshopAccountService.createAccount(new Date(), 2);
|
|
this.workshopAccountService.createAccount(new Date(), 2);
|
|
}
|
|
}
|
|
@@ -132,7 +133,7 @@ public class ScheduleTask {
|
|
@Scheduled(cron = second_30)
|
|
@Scheduled(cron = second_30)
|
|
private void printRfidBaseInfo(){
|
|
private void printRfidBaseInfo(){
|
|
|
|
|
|
- if(type.equals("dev"))return;
|
|
|
|
|
|
+ if(type.equals("dev")||type.equals("local"))return;
|
|
|
|
|
|
//获取数据 rfid_base_info中 status ==1 ,且res_dept_id==2
|
|
//获取数据 rfid_base_info中 status ==1 ,且res_dept_id==2
|
|
LambdaQueryWrapper<BaseInfo> queryWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<BaseInfo> queryWrapper = new LambdaQueryWrapper<>();
|
|
@@ -157,7 +158,7 @@ public class ScheduleTask {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
- log.info("执行了定时任务={} ,打印rfid信息={}","每五分钟执行打印rfid标签列表","标签列表数量"+ls!=null?ls.size():0);
|
|
|
|
|
|
+ log.info("执行了定时任务={} ,打印rfid信息={}","每30秒执行打印rfid标签列表","标签列表数量"+ls!=null?ls.size():0);
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|