From 942eff2a06da2f69e9e87736f50b2bfe93cb365c Mon Sep 17 00:00:00 2001 From: xy <748613696@qq.com> Date: Mon, 14 Oct 2024 09:39:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=BA=9F=E5=BC=83=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../access/runner/AccessScheduledTask.java | 53 ------------------- 1 file changed, 53 deletions(-) delete mode 100644 iot-access/access-boot/src/main/java/com/njcn/access/runner/AccessScheduledTask.java diff --git a/iot-access/access-boot/src/main/java/com/njcn/access/runner/AccessScheduledTask.java b/iot-access/access-boot/src/main/java/com/njcn/access/runner/AccessScheduledTask.java deleted file mode 100644 index 10c62d0..0000000 --- a/iot-access/access-boot/src/main/java/com/njcn/access/runner/AccessScheduledTask.java +++ /dev/null @@ -1,53 +0,0 @@ -//package com.njcn.access.runner; -// -//import cn.hutool.core.collection.CollUtil; -//import cn.hutool.core.collection.CollectionUtil; -//import com.njcn.access.service.ICsEquipmentDeliveryService; -//import com.njcn.access.service.ICsTopicService; -//import com.njcn.access.service.impl.CsDeviceServiceImpl; -//import com.njcn.csdevice.pojo.po.CsEquipmentDeliveryPO; -//import lombok.extern.slf4j.Slf4j; -//import org.springframework.scheduling.annotation.Scheduled; -//import org.springframework.stereotype.Component; -// -//import javax.annotation.Resource; -//import java.util.List; -//import java.util.Objects; -// -///** -// * 类的介绍:防止设备掉线 系统未能调整,做一个定时任务,每天凌晨将所有设备重新接入 -// * -// * @author xuyang -// * @version 1.0.0 -// * @createTime 2023/8/28 14:21 -// */ -//@Component -//@Slf4j -//public class AccessScheduledTask { -// -// @Resource -// private CsDeviceServiceImpl csDeviceService; -// -// @Resource -// private ICsTopicService csTopicService; -// -// @Resource -// private ICsEquipmentDeliveryService csEquipmentDeliveryService; -// -// /** -// * {秒数} {分钟} {小时} {日期} {月份} {星期} {年份(可为空)} -// */ -// @Scheduled(cron = "0 0 0 * * ?") -// public void executeTask() { -// log.info("每日凌晨定时任务执行"); -// List list = csEquipmentDeliveryService.getAll(); -// if (CollUtil.isNotEmpty(list)) { -// for (int i = 0; i < list.size(); i++) { -// String version = csTopicService.getVersion(list.get(i).getNdid()); -// if (!Objects.isNull(version)){ -// csDeviceService.devAccess(list.get(i).getNdid(),version,i); -// } -// } -// } -// } -//}