| | |
| | | passingStationCollectionServiceImpl.sendMessage(type+"*"+boxCode,"OP030"); |
| | | } |
| | | |
| | | } else if ("196".equals(type) || "296".equals(type)){ |
| | | ReadWriteEntity entity6 = new ReadWriteEntity("CFL4HX.OP030.CodeComplete", 1); |
| | | miloService.writeToOpcByte(entity6); |
| | | } |
| | | } |
| | | |
| | |
| | | //如果是老车型,判断是否重复扫码 |
| | | if (OPCElement.OP050_CODE_CHECK.equals(Node)){ |
| | | String type = productNewFlag(SNCode); |
| | | if (!"280".equals(type) && !"380".equals(type)){ |
| | | if (!"280".equals(type) && !"380".equals(type) && !"196".equals(type) && !"296".equals(type) ){ |
| | | DaPassingStationCollection passCheck = new DaPassingStationCollection(); |
| | | passCheck.setSfcCode(SNCode); |
| | | passCheck.setLocationCode("OP060"); |
| | |
| | | //60只采集老车型 |
| | | if (OPCElement.OP060_SAVE_REQUEST.equals(Node) || OPCElement.OP060_SAVE_REQUEST_LAST.equals(Node)){ |
| | | String s = productNewFlag(SNCode); |
| | | if ("280".equals(s) || "380".equals(s)){ |
| | | if ("280".equals(s) || "380".equals(s) || "196".equals(s) || "296".equals(s)){ |
| | | list = new ArrayList<>(); |
| | | } |
| | | } |
| | |
| | | || OPCElement.OP100_SAVE_REQUEST_LAST.equals(Node)){ |
| | | String s = productNewFlag(SNCode); |
| | | if (StrUtil.isNotEmpty(s)){ |
| | | if (!"280".equals(s) && !"380".equals(s)){ |
| | | if (!"280".equals(s) && !"380".equals(s) && !"196".equals(s)){ |
| | | list = new ArrayList<>(); |
| | | } |
| | | } |
| | |
| | | type = "280"; |
| | | } else if (SNCode.startsWith("380")){ |
| | | type = "380"; |
| | | } else if (SNCode.startsWith("196")){ |
| | | type = "196"; |
| | | } else if (SNCode.startsWith("296")){ |
| | | type = "296"; |
| | | }else { |
| | | type = "oldType"; |
| | | } |
| | |
| | | } |
| | | } else if ("280".equals(productNewFlag)){ |
| | | |
| | | } else if ("196".equals(productNewFlag)){ |
| | | ReadWriteEntity entity6 = new ReadWriteEntity("CFL4HX.OP040.CodeComplete", 1); |
| | | miloService.writeToOpcByte(entity6); |
| | | // ProductNewPassStation passStation = new ProductNewPassStation(); |
| | | // passStation.setSfcCode(SNCode); |
| | | // List<ProductNewPassStation> productPassStationList = productNewPassStationService.getProductPassStationList(passStation); |
| | | // if (CollUtil.isNotEmpty(productPassStationList)){ |
| | | // ProductNewPassStation productNewPassStation = productPassStationList.get(0); |
| | | // String boxCode = productNewPassStation.getBoxCode(); |
| | | // String productType = productNewPassStation.getProductType(); |
| | | // log.info("发送到OP040的页面数据productType,{}",productType); |
| | | // log.info("发送到OP040的页面数据boxCode,{}",boxCode); |
| | | // passingStationCollectionServiceImpl.sendMessage(productType+"*"+boxCode, "OP040"); |
| | | // } |
| | | } |
| | | } |
| | | } |