| | |
| | | miloService.writeToOpcShort(ReadWriteEntity.builder().identifier("MOZU1."+daParamCollection.getLocationCode()+".RecordDataDone").value(21).build()); |
| | | if(daParamCollection.getLocationCode().equals("M1OP100-1") || daParamCollection.getLocationCode().equals("M1OP100-2") ){ |
| | | try{ |
| | | //更新工单状态为已执行 |
| | | LambdaUpdateWrapper<OmProductionOrdeInfo> updateWrapper = new LambdaUpdateWrapper<>(); |
| | | updateWrapper.set(OmProductionOrdeInfo::getOrderStatus,"3"); |
| | | updateWrapper.eq(OmProductionOrdeInfo::getProductNum,daParamCollection.getProductBarcode()); |
| | | omProductionOrdeInfoService.update(new OmProductionOrdeInfo(),updateWrapper); |
| | | |
| | | //上传工厂MES报工 |
| | | CompletableFuture<Void> cp1 = CompletableFuture.runAsync(() -> { |
| | | logger.info("OP100报工开始-工厂MES异步方法"); |
| | | String stationCode = "M1P100";//因为上层系统只支持6为,所有报工工位为M1P100 |
| | | String stationCode = "M1P100";//因为上层系统只支持6位,所有报工工位为M1P100 |
| | | String reportResult = RestfulService.getWorkReportResultFeedback(daParamCollection.getProductBarcode(), stationCode, format.format(new Date())); |
| | | JSONObject jsonObject = new JSONObject(reportResult); |
| | | String code = jsonObject.getStr("code"); |