严智鑫
2024-12-03 def1eb8623e1444164ae4bce9179d011a89b8c5e
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
package com.mes;
 
import com.mes.common.*;
import com.mes.job.PLCLoad;
import com.mes.md.mapper.MachineMapper;
import com.mes.md.mapper.TaskingMapper;
import com.mes.md.service.LineConfigurationService;
import com.mes.md.service.PrimitiveTaskService;
import com.mes.md.service.TaskingService;
import com.mes.plcTaskThread.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
 
import javax.annotation.Resource;
 
@Slf4j
@Component
@Order(1)
 
public class AppRunnerConfig implements ApplicationRunner {
    @Resource
    TaskingMapper taskingMapper;
    @Resource
    MachineMapper machineMapper;
    @Resource
    TaskingService taskingService;
    @Resource
    PrimitiveTaskService primitiveTaskService;
    @Resource
    LineConfigurationService lineConfigurationService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        // TODO Auto-generated method stub
//        new MachineLoad(taskingMapper,machineMapper,taskingService,primitiveTaskService,lineConfigurationService).start();
//        new MachineEdging(taskingMapper,machineMapper,taskingService,primitiveTaskService,lineConfigurationService).start();
//        new MachineFlipSlice(machineMapper,taskingService).start();
//        new MachineMarking(machineMapper,taskingService).start();
//        new MachineSilkScreen(machineMapper,taskingService).start();
//        new MachineRotate(machineMapper,taskingService).start();
    }
}