| | |
| | | import com.jcdm.main.da.opcuaconfig.domain.DaOpcuaConfig; |
| | | import com.jcdm.main.da.opcuaconfig.service.IDaOpcuaConfigService; |
| | | import com.jcdm.main.da.paramCollection.service.IDaParamCollectionService; |
| | | import com.jcdm.main.da.passingStationCollection.service.ProductNewPassStationService; |
| | | import com.jcdm.main.da.passingStationCollection.service.impl.DaPassingStationCollectionServiceImpl; |
| | | import com.jcdm.main.plcserver.sub.OPCUaSubscription; |
| | | import com.jcdm.main.rm.repairRecord.service.IRmRepairRecordService; |
| | |
| | | @Resource |
| | | private IBsTechnologyRouteChildInfoService bsTechnologyRouteChildInfoService; |
| | | |
| | | @Resource |
| | | private ProductNewPassStationService productNewPassStationService; |
| | | |
| | | @Override |
| | | public void run(ApplicationArguments args) throws Exception { |
| | | |
| | |
| | | bsOrderSchedulingService, |
| | | lists, |
| | | rmRepairRecordService, |
| | | bsTechnologyRouteChildInfoService); |
| | | |
| | | |
| | | miloService.subscriptionFromOpcUa(collect,opcUaSubscription); |
| | | |
| | | bsTechnologyRouteChildInfoService, |
| | | productNewPassStationService); |
| | | miloService.subscriptionFromOpcUa(collect,100,opcUaSubscription); |
| | | } |
| | | |
| | | /** |
| | |
| | | DaOpcuaConfig config = new DaOpcuaConfig(); |
| | | config.setState(0); |
| | | List<DaOpcuaConfig> list = iDaOpcuaConfigService.selectDaOpcuaConfigList(config); |
| | | // List<String> lists = new ArrayList<>(); |
| | | // if (CollUtil.isNotEmpty(list)){ |
| | | // lists = list.stream().map(DaOpcuaConfig::getNode).distinct().collect(Collectors.toList()); |
| | | // } |
| | | // List<String> lists = new ArrayList<>(); |
| | | //// lists.add(OPCElement.OP010_SaveRequest);//请求保存 |
| | | //// lists.add(OPCElement.OP010_CodeCheck);//请求检索条码 |
| | | //// lists.add(OPCElement.OP020_SaveRequest);//请求保存 |
| | | // lists.add(OPCElement.OP120_SaveRequestLast);//请求保存 |
| | | // lists.add(OPCElement.OP120_ZZ_CODE_CHECK);//请求保存 |
| | | return list; |
| | | } |
| | | } |