| | |
| | | bsFormulaChildInfos.get(0).setResults("OK"); |
| | | bsFormulaChildInfos.get(0).setCollectData(bsFormulaChildInfo.getTightenTheArray()); |
| | | bsFormulaChildInfoMapper.updateBsFormulaChildInfo(bsFormulaChildInfos.get(0)); |
| | | |
| | | Integer stepNumber = Integer.valueOf(bsFormulaChildInfos.get(0).getStepSort()); |
| | | try { |
| | | miloService.writeToOpcShort(ReadWriteEntity.builder().identifier("PACK."+bsFormulaChildInfo.getLocationCode()+".StepNumber").value(stepNumber).build()); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | |
| | | String spareField4 = bsFormulaChildInfos.get(0).getSpareField4(); |
| | | if (spareField4 != null && !spareField4.isEmpty()) { |
| | | // 执行操作 |
| | |
| | | bsFormulaChildInfo.setParamCode(bsFormulaChildInfos.get(0).getParamCode()); |
| | | bsFormulaChildInfo.setSfcBarcode(bsFormulaChildInfo.getSfcBarcode()); |
| | | addParameterCollection(bsFormulaChildInfo); |
| | | |
| | | // Integer stepNumber = Integer.valueOf(bsFormulaChildInfos.get(0).getStepSort()); |
| | | // try { |
| | | // miloService.writeToOpcShort(ReadWriteEntity.builder().identifier("PACK."+bsFormulaChildInfo.getLocationCode()+".StepNumber").value(stepNumber).build()); |
| | | // } catch (Exception e) { |
| | | // throw new RuntimeException(e); |
| | | // } |
| | | |
| | | if (spareField4 != null && !spareField4.isEmpty()) { |
| | | // 执行操作 |
| | | if(bsFormulaChildInfos.get(0).getSpareField4().equals("1")){ |
| | |
| | | bsFormulaChildInfos.get(0).setResults("OK"); |
| | | bsFormulaChildInfos.get(0).setCollectData(bsFormulaChildInfo.getTightenTheArray()); |
| | | bsFormulaChildInfoMapper.updateBsFormulaChildInfo(bsFormulaChildInfos.get(0)); |
| | | |
| | | Integer stepNumber = Integer.valueOf(bsFormulaChildInfos.get(0).getStepSort()); |
| | | try { |
| | | miloService.writeToOpcShort(ReadWriteEntity.builder().identifier("PACK."+bsFormulaChildInfo.getLocationCode()+".StepNumber").value(stepNumber).build()); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | |
| | | String spareField4 = bsFormulaChildInfos.get(0).getSpareField4(); |
| | | if (spareField4 != null && !spareField4.isEmpty()) { |
| | | // 执行操作 |