自动化立体仓库 - WMS系统
13
zhang
2025-05-24 c22266b4dfbe3f338d2dd0bb31b10df1b5c92fb5
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package com.zy.nc.task;
 
import com.zy.asrs.task.core.ReturnT;
import com.zy.nc.task.handler.BaseDataHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
@Slf4j
@Component
public class BaseDataTask {
 
    @Autowired
    private BaseDataHandler baseDataHandler;
 
    @Scheduled(cron = "0/3 * * * * ? ")
    public void execute1() {
//        ReturnT<String> returnT = baseDataHandler.start1();
//        if (!returnT.isSuccess()) {
//            log.error(returnT.getMsg());
//        }
    }
 
    /**
     * 人员数据同步
     */
    @Scheduled(cron = "0/3 * * * * ? ")
    public void start8() {
        ReturnT<String> returnT = baseDataHandler.start8();
        if (!returnT.isSuccess()) {
            log.error(returnT.getMsg());
        }
    }
 
 
 
    /**
     * 物料分类数据同步
     */
    @Scheduled(cron = "0/3 * * * * ? ")
    public void start9() {
        ReturnT<String> returnT = baseDataHandler.start9();
        if (!returnT.isSuccess()) {
            log.error(returnT.getMsg());
        }
    }
 
    /**
     * 物料基础数据同步
     */
    @Scheduled(cron = "0/3 * * * * ? ")
    public void execute13() {
        ReturnT<String> returnT = baseDataHandler.start13();
        if (!returnT.isSuccess()) {
            log.error(returnT.getMsg());
        }
    }
 
 
    /**
     * 仓库基础数据同步
     */
    @Scheduled(cron = "0/3 * * * * ? ")
    public void execute6() {
        ReturnT<String> returnT = baseDataHandler.start6();
        if (!returnT.isSuccess()) {
            log.error(returnT.getMsg());
        }
    }
}