自动化立体仓库 - WMS系统
zhangc
2024-12-03 4e9991c5dfcbc6124692c12c1dce9a0a87885ad1
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
package com.zy.asrs.task;
 
import com.core.common.Cools;
import com.zy.asrs.entity.Pla;
import com.zy.asrs.service.PlaService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
import java.util.List;
 
@Slf4j
@Component
public class PlaDetlScheduler {
 
    @Autowired
    private PlaService plaService;
 
    @Scheduled(cron = "0/60 * * * * ? ")
    private void execute(){
        List<Pla> plaList = plaService.selectToHistory();
        if(Cools.isEmpty(plaList)){
            return;
        }
 
        for (Pla pla : plaList){
 
        }
 
    }
}