1
4 天以前 803659e33b12c2a089ed25754a2b3a7bca30a9d6
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
40
41
42
43
44
45
46
47
48
package com.vincent.rsf.server.manager.schedules;
 
import com.vincent.rsf.server.manager.service.*;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
 
/**
 * @author Munch D. Luffy
 * @date 2026/01/15
 * 缓存区域任务自动触发
 */
@Slf4j
@Component
public class TaskCacheLocSchedules {
 
    public static Logger logger = LoggerFactory.getLogger(TaskCacheLocSchedules.class);
 
    @Autowired
    private TaskService taskService;
 
 
    /**
     * @author Munch D. Luffy
     * @date 2026/01/15
     * @description: 缓存区域自动生成移库任务
     * @version 1.0
     */
    @Scheduled(cron = "0/3 * * * * ?")
    public void startCacheInLocStock() throws Exception {
 
    }
 
    /**
     * @author Munch D. Luffy
     * @date 2026/01/15
     * @description: 缓存区域自动生成空货架出库任务
     * @version 1.0
     */
    @Scheduled(cron = "0/5 * * * * ?  ")
    @Transactional(rollbackFor = Exception.class)
    public void complateOutStock() throws Exception {
    }
}