| | |
| | | @Override |
| | | public void run(ApplicationArguments args) throws Exception { |
| | | |
| | | //PLC到MES物料转换 |
| | | Constants.materialMap.put("1","9900200461");//微卡电驱动系统总成(9999276636)//9900200461 |
| | | Constants.materialMap.put("2","9900207783");//微面电驱动系统总成(9999276639)//9900207783 |
| | | |
| | | Constants.facMaterialMap.put("9900200461","9999276636");//生产物料转工厂物料请求工单 |
| | | Constants.facMaterialMap.put("9900207783","9999276639");//生产物料转工厂物料请求工单 |
| | | |
| | | //通道 |
| | | Constants.thoroughfareMap.put(Constants.OP010,"JCDM035-1"); |
| | | |
| | | Constants.thoroughfareMap.put(Constants.OP020,"JCDM035-2"); |
| | | Constants.thoroughfareMap.put(Constants.OP030,"JCDM035-2"); |
| | | Constants.thoroughfareMap.put(Constants.OP120_2,"JCDM035-2"); |
| | | Constants.thoroughfareMap.put(Constants.OP130,"JCDM035-2"); |
| | | Constants.thoroughfareMap.put(Constants.OP140,"JCDM035-2"); |
| | | Constants.thoroughfareMap.put(Constants.OP150,"JCDM035-2"); |
| | | Constants.thoroughfareMap.put(Constants.OP160,"JCDM035-2"); |
| | | Constants.thoroughfareMap.put(Constants.OP165,"JCDM035-2"); |
| | | |
| | | Constants.thoroughfareMap.put(Constants.OP040,"JCDM035-3"); |
| | | Constants.thoroughfareMap.put(Constants.OP050,"JCDM035-3"); |
| | | Constants.thoroughfareMap.put(Constants.OP060,"JCDM035-3"); |
| | | Constants.thoroughfareMap.put(Constants.OP070,"JCDM035-3"); |
| | | Constants.thoroughfareMap.put(Constants.OP080,"JCDM035-3"); |
| | | Constants.thoroughfareMap.put(Constants.OP090,"JCDM035-3"); |
| | | Constants.thoroughfareMap.put(Constants.OP100,"JCDM035-3"); |
| | | Constants.thoroughfareMap.put(Constants.OP110,"JCDM035-3"); |
| | | |
| | | Constants.thoroughfareMap.put(Constants.OP170,"JCDM035-4"); |
| | | Constants.thoroughfareMap.put(Constants.OP180,"JCDM035-4"); |
| | | Constants.thoroughfareMap.put(Constants.OP190,"JCDM035-4"); |
| | | Constants.thoroughfareMap.put(Constants.OP200,"JCDM035-4"); |
| | | Constants.thoroughfareMap.put(Constants.OP210,"JCDM035-4"); |
| | | Constants.thoroughfareMap.put(Constants.OP220,"JCDM035-4"); |
| | | Constants.thoroughfareMap.put(Constants.OP230,"JCDM035-4"); |
| | | |
| | | //主线人工工位 |
| | | Constants.OP040_OP160.add(Constants.OP040); |
| | | Constants.OP040_OP160.add(Constants.OP080); |
| | | Constants.OP040_OP160.add(Constants.OP070); |
| | | Constants.OP040_OP160.add(Constants.OP100); |
| | | Constants.OP040_OP160.add(Constants.OP120_2); |
| | | Constants.OP040_OP160.add(Constants.OP165); |
| | | |
| | | //环线人工工位 |
| | | Constants.OP0170_OP220.add(Constants.OP170); |
| | | Constants.OP0170_OP220.add(Constants.OP180); |
| | | Constants.OP0170_OP220.add(Constants.OP190); |
| | | Constants.OP0170_OP220.add(Constants.OP200); |
| | | Constants.OP0170_OP220.add(Constants.OP210); |
| | | Constants.OP0170_OP220.add(Constants.OP220); |
| | | |
| | | OPCUaSubscription opcUaSubscription = new OPCUaSubscription( |
| | | miloService, |
| | | daPassingStationCollectionService, |
| | |
| | | */ |
| | | public List<String> getSubList(){ |
| | | List<String> lists = daOpcuaConfigService.list(new LambdaQueryWrapper<DaOpcuaConfig>() |
| | | .eq(DaOpcuaConfig::getState, Constants.USE_ING)) |
| | | .eq(DaOpcuaConfig::getState, Constants.USE_ING) |
| | | .eq(DaOpcuaConfig::getSubscribe,Constants.YES)) |
| | | .stream().map(DaOpcuaConfig::getNode).collect(Collectors.toList()); |
| | | return lists; |
| | | } |