dongyukun
3 天以前 49e41fde757ce77904930641d471a5c459979d40
point归档
已添加1个文件
已修改6个文件
58 ■■■■ 文件已修改
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/ArcTypeEnum.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointArchivingTaskNet15min.java 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointArchivingTaskNet1h.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointArchivingTaskNetDay.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointArchivingTaskNetMonth.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointArchivingTaskNetShift.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointArchivingTaskNetYear.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/ArcTypeEnum.java
@@ -12,6 +12,8 @@
@AllArgsConstructor
public enum ArcTypeEnum {
    MIN15("MIN15","15分钟"),
    HOUR("HOUR","时"),
    SHIFT("SHIFT","班"),
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointArchivingTaskNet15min.java
对比新文件
@@ -0,0 +1,36 @@
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());
        }
    }
}
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointArchivingTaskNet1h.java
@@ -4,6 +4,7 @@
import com.iailab.module.data.arc.service.ArcDataService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.time.LocalDateTime;
@@ -13,10 +14,9 @@
 * @author: dyk
 * @date: 2025/2/20 16:30
 **/
@Component("pointArchivingTaskNet1h")
public class PointArchivingTaskNet1h implements ITask {
    private Logger logger = LoggerFactory.getLogger(getClass());
    private final String NET = "1h";
    @Resource
    private ArcDataService arcPointDataService;
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointArchivingTaskNetDay.java
@@ -4,6 +4,7 @@
import com.iailab.module.data.arc.service.ArcDataService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.time.LocalDateTime;
@@ -13,10 +14,9 @@
 * @author: dyk
 * @date: 2025/2/20 16:30
 **/
@Component("pointArchivingTaskNetDay")
public class PointArchivingTaskNetDay implements ITask {
    private Logger logger = LoggerFactory.getLogger(getClass());
    private final String NET = "1h";
    @Resource
    private ArcDataService arcPointDataService;
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointArchivingTaskNetMonth.java
@@ -4,6 +4,7 @@
import com.iailab.module.data.arc.service.ArcDataService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.time.LocalDateTime;
@@ -13,10 +14,9 @@
 * @author: dyk
 * @date: 2025/2/20 16:30
 **/
@Component("pointArchivingTaskNetMonth")
public class PointArchivingTaskNetMonth implements ITask {
    private Logger logger = LoggerFactory.getLogger(getClass());
    private final String NET = "1h";
    @Resource
    private ArcDataService arcPointDataService;
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointArchivingTaskNetShift.java
@@ -4,6 +4,7 @@
import com.iailab.module.data.arc.service.ArcDataService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.time.LocalDateTime;
@@ -13,10 +14,9 @@
 * @author: dyk
 * @date: 2025/2/20 16:30
 **/
@Component("pointArchivingTaskNetShift")
public class PointArchivingTaskNetShift implements ITask {
    private Logger logger = LoggerFactory.getLogger(getClass());
    private final String NET = "1h";
    @Resource
    private ArcDataService arcPointDataService;
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointArchivingTaskNetYear.java
@@ -4,6 +4,7 @@
import com.iailab.module.data.arc.service.ArcDataService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.time.LocalDateTime;
@@ -13,10 +14,9 @@
 * @author: dyk
 * @date: 2025/2/20 16:30
 **/
@Component("pointArchivingTaskNetYear")
public class PointArchivingTaskNetYear implements ITask {
    private Logger logger = LoggerFactory.getLogger(getClass());
    private final String NET = "1h";
    @Resource
    private ArcDataService arcPointDataService;