package com.iailab.module.data.job.task; import com.iailab.module.data.arc.service.ArcDataService; import com.iailab.module.data.common.enums.ArcTypeEnum; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import javax.annotation.Resource; import java.time.LocalDateTime; /** * @description: Point归档1h * @author: dyk * @date: 2025/2/20 16:30 **/ @Component("pointArchivingTaskNet15min") public class PointArchivingTaskNet15min implements ITask { private Logger logger = LoggerFactory.getLogger(getClass()); @Resource private ArcDataService arcPointDataService; @Override public void run(String params){ logger.debug("PointArchivingTaskNet1h定时任务正在执行,参数为:{}", params); try { arcPointDataService.archiving(ArcTypeEnum.MIN15.getCode()); logger.info("PointArchivingTaskNet1h定时任务完成时间:" + LocalDateTime.now()); } catch (Exception ex) { ex.printStackTrace(); logger.error("PointArchivingTaskNet1h定时任务失败时间:" + LocalDateTime.now()); } } }