package com.xueyi.job.task;

import com.xueyi.system.api.digitalmans.feign.RemoteDigitalmanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时任务调度测试
 *
 * @author xueyi
 */
@Component("dmRecognizedRecordsCleanTask")
public class DmRecognizedRecordsCleanTask {
    @Autowired
    RemoteDigitalmanService remoteDigitalmanService;
    /**
     * 触发条件：* 0/1 * * * *
     * 每分钟执行一次
     */


    public void delOutDays() {
        remoteDigitalmanService.delRecognizedRecords(5);
    }
}
