| | |
| | | package com.mes; |
| | | |
| | | import com.mes.common.S7object; |
| | | 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 |
| | | log.info("启动完成"); |
| | | S7object.getinstance().start(); |
| | | |
| | | // 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(); |
| | | } |
| | | } |