baoshiwei
2 天以前 55ff4ad6155248a7c2f391fd4fe75682a311dac0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.zhitan.quartz.task;
 
import com.zhitan.airconditioner.service.IAirConditionerScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
/**
 * 空调定时任务
 *
 * @author zhitan
 */
@Component("airConditionerTask")
public class AirConditionerTask
{
    @Autowired
    private IAirConditionerScheduleService airConditionerScheduleService;
 
    /**
     * 执行空调定时任务
     */
    public void executeScheduleTasks()
    {
        airConditionerScheduleService.executeScheduleTasks();
    }
}