k94314517
2025-03-20 04a2d3283bb74d626777440fff4ea344e9ad452d
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.doumee.api.timer;
 
import com.doumee.core.utils.DateUtil;
import com.doumee.service.business.BookingsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
import java.util.Date;
 
/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Rk
 * @create 2025/3/20 9:58
 */
@Component
@EnableScheduling
@Slf4j
public class TaskController {
 
 
    @Autowired
    private BookingsService bookingsService;
 
 
    /**
     * 定时自动开始会议
     */
    @Scheduled(cron = "1 * * * * ?")
    public void autoStart() {
        bookingsService.autoStart();
    }
 
 
 
}