自动化立体仓库 - WMS系统
#
18516761980
2022-09-30 147fcf9b349bd7314f6488a2c197d91fe6eb86a8
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
package com.zy.asrs.task;
 
import com.zy.asrs.task.core.ReturnT;
import com.zy.asrs.task.handler.FireOutHandler;
import com.zy.asrs.task.handler.MoveLocHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
@Component
@Slf4j
public class MoveLocScheduler {
 
    @Value("${wcs-slave.doubleDeep}")
    private boolean confirmDeep;
    @Autowired
    private MoveLocHandler moveLocHandler;
 
    /**
     *
     */
    @Scheduled(cron = "0/3 * * * * ? ")
    private void execute() {
        if (confirmDeep) return;
 
        ReturnT<String> result = moveLocHandler.start();
        if (!result.isSuccess()) {
//            log.error("测试完成移库失败");
        }
    }
 
}