package tech.glinfo.enbao.modules.job.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tech.glinfo.enbao.modules.sh.service.OtherShDeviceService;

/**
 * 设备5分钟不更新上线时间设置改设备离线定时器
 * @author linyetong
 * @date 2019/12/20 9:29
 */

@Component("shDeviceTask")
public class ShDeviceTask implements ITask {

    @Autowired
    private OtherShDeviceService otherShDeviceService;


    @Override
    public void run(String params) {
        // 智能家居超过5分钟不上报数据设置离线
        otherShDeviceService.timeout();
    }
}
