| | |
| | | if (!basStation.getUseStatus().equals("O")) { |
| | | throw new CoolException("站点状态不为空闲"); |
| | | } |
| | | |
| | | List<String> areaList = JSONObject.parseArray(basStation.getCrossZoneArea(), String.class); |
| | | if (!areaList.contains(area)) { |
| | | throw new CoolException("当前站点不支持目标库区"); |
| | | } |
| | | if (!Cools.isEmpty(basStation.getContainerType())) { |
| | | List<Long> longs1 = JSONObject.parseArray(basStation.getContainerType(), Long.class); |
| | | List<BasContainer> containers = basContainerService.list( |
| | |
| | | for (BasContainer container : containers) { |
| | | String codeType = container.getCodeType(); // 获取正则表达式 |
| | | if (barcode.matches(codeType)) { // 判断条码是否符合这个正则 |
| | | List<String> areaList2 = JSONObject.parseArray(container.getAreas(), String.class); |
| | | if (!areaList2.contains(area)) { |
| | | List<Integer> areaList2 = container.getAreas(); |
| | | if (!areaList2.contains(Integer.parseInt(area))) { |
| | | matches2 = false; |
| | | continue; |
| | | } |