| | |
| | | if (StringUtils.isEmpty(engineNo)){ |
| | | return R.fail(500,"箱体码不能为空,请重试"); |
| | | } |
| | | if (!engineNo.contains(",")){ |
| | | if (!engineNo.contains(",") && !engineNo.contains("/") ){ |
| | | return R.fail(500,"箱体码格式有误,请重试"); |
| | | } |
| | | ProductNewPassStation checkStation = new ProductNewPassStation(); |
| | |
| | | |
| | | if (StrUtil.isNotBlank(OrderScheduling.getEngineNo())){ |
| | | String snCode = OrderScheduling.getEngineNo(); |
| | | if (snCode.startsWith("280") || snCode.startsWith("380")){ |
| | | if (snCode.startsWith("280") || snCode.startsWith("380") || snCode.startsWith("196") || snCode.startsWith("296")){ |
| | | ProductNewPassStation productNewPassStation = new ProductNewPassStation(); |
| | | UUID uuid = UUID.randomUUID(); |
| | | productNewPassStation.setId(uuid.getMostSignificantBits()); |
| | |
| | | productNewPassStation.setBoxCode(engineNo); |
| | | if (snCode.startsWith("280")){ |
| | | productNewPassStation.setProductType("280"); |
| | | } else { |
| | | } else if (snCode.startsWith("380")){ |
| | | productNewPassStation.setProductType("380"); |
| | | } else if (snCode.startsWith("196")){ |
| | | productNewPassStation.setProductType("196"); |
| | | } else if (snCode.startsWith("296")){ |
| | | productNewPassStation.setProductType("296"); |
| | | } |
| | | productNewPassStationService.insertPassStation(productNewPassStation); |
| | | } |